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-04 19:36:02 +01:00 committed by Tim Edwards
parent fc49b40c52
commit 489de7fdb4
1 changed files with 1 additions and 1 deletions

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};