From 54ddcf4fa1ea90654cb33a867c39b3f631702620 Mon Sep 17 00:00:00 2001 From: Masafumi Max NAKANE Date: Thu, 23 Jan 1997 04:41:01 +0000 Subject: [PATCH] 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? --- games/backgammon/common_source/subs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/games/backgammon/common_source/subs.c b/games/backgammon/common_source/subs.c index 827e3e0ddc9..5b07ad19e3e 100644 --- a/games/backgammon/common_source/subs.c +++ b/games/backgammon/common_source/subs.c @@ -376,7 +376,7 @@ register char ***arg; } s++; } - if (s[0] != 0) + if (s[0] != 0 && s[0][0] != '\0') recover(s[0]); }