mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-08 22:18:01 +00: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=21957
@ -376,7 +376,7 @@ register char ***arg;
|
||||
}
|
||||
s++;
|
||||
}
|
||||
if (s[0] != 0)
|
||||
if (s[0] != 0 && s[0][0] != '\0')
|
||||
recover(s[0]);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user