mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
When calling recover() from getarg(), also check to see if the first
character of the argument being processed isn't '\0'. This fixes problem with backgammon exiting abnormally when you answer 'y' to the question it asks if you need instruction for the game. 2.2 cnadidate, maybe?
This commit is contained in:
parent
628c949a71
commit
54ddcf4fa1
1 changed files with 1 additions and 1 deletions
|
|
@ -376,7 +376,7 @@ register char ***arg;
|
|||
}
|
||||
s++;
|
||||
}
|
||||
if (s[0] != 0)
|
||||
if (s[0] != 0 && s[0][0] != '\0')
|
||||
recover(s[0]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue