NMbutton.c: fix: warning: statement with no effect

Looks like a logic bug hidden in the warning.

GCC14 -Wall cleanup series [-Wunused-value]
This commit is contained in:
Darryl L. Miles 2024-10-04 16:03:53 +01:00 committed by Tim Edwards
parent c749d01eb7
commit 3477480ab0
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ NMButtonNetList(window, cmd, nmButton, point)
else
{
TxPrintf("New net list name: ");
if (TxGetLine(newName, MAXLENGTH) == NULL) newName[0] == 0;
if (TxGetLine(newName, MAXLENGTH) == NULL) newName[0] = 0;
if (newName[0] == 0) return;
NMNewNetlist(newName);
}