From 3477480ab0512bbcf0ffa356810f427b790634b3 Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Fri, 4 Oct 2024 16:03:53 +0100 Subject: [PATCH] NMbutton.c: fix: warning: statement with no effect Looks like a logic bug hidden in the warning. GCC14 -Wall cleanup series [-Wunused-value] --- netmenu/NMbutton.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netmenu/NMbutton.c b/netmenu/NMbutton.c index 723a6c4b..43d40308 100644 --- a/netmenu/NMbutton.c +++ b/netmenu/NMbutton.c @@ -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); }