1
0
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:
Masafumi Max NAKANE 1997-01-23 04:41:01 +00:00
parent 628c949a71
commit 54ddcf4fa1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=21957

View File

@ -376,7 +376,7 @@ register char ***arg;
}
s++;
}
if (s[0] != 0)
if (s[0] != 0 && s[0][0] != '\0')
recover(s[0]);
}