mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 01:43:00 +02:00
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:
committed by
Tim Edwards
parent
c749d01eb7
commit
3477480ab0
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user