curses: fix unused label 'bail'
when SELECTSAVED isn't defined by using a goto for it even when an 'if' was easily avoiding the need for that.
This commit is contained in:
@@ -254,10 +254,11 @@ curses_askname()
|
||||
|
||||
curses_line_input_dialog("Who are you?", g.plname, PL_NSIZ);
|
||||
(void) mungspaces(g.plname);
|
||||
if (g.plname[0] && g.plname[0] != '\033') {
|
||||
iflags.renameallowed = TRUE; /* tty uses this, we don't [yet?] */
|
||||
return;
|
||||
}
|
||||
if (!g.plname[0] || g.plname[0] == '\033')
|
||||
goto bail;
|
||||
|
||||
iflags.renameallowed = TRUE; /* tty uses this, we don't [yet?] */
|
||||
return;
|
||||
|
||||
bail:
|
||||
/* message is delivered via raw_print() */
|
||||
|
||||
Reference in New Issue
Block a user