diff --git a/win/curses/cursmain.c b/win/curses/cursmain.c index 5607897ba..7d8d4ac11 100644 --- a/win/curses/cursmain.c +++ b/win/curses/cursmain.c @@ -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() */