CmdCD.c: 'option' is used uninitialized

CmdCD.c:3693:14: warning: variable 'option' is used uninitialized whenever 'if' condition is false
CmdCD.c:3691:9: warning: variable 'option' is used uninitialized whenever 'if' condition is true

clang18 -Wall warning cleanup [-Wsometimes-uninitialized]
This commit is contained in:
Darryl L. Miles
2024-10-09 21:34:12 -04:00
committed by Tim Edwards
parent fc49b40c52
commit 489de7fdb4
+1 -1
View File
@@ -3684,7 +3684,7 @@ CmdCrash(w, cmd)
MagWindow *w;
TxCommand *cmd;
{
int option;
int option = -1;
char *filename = NULL;
static char *cmdCrashOpt[] = {"save", "recover", 0};