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

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]);
}