summaryrefslogtreecommitdiffstats
path: root/games/cribbage/instr.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/cribbage/instr.c')
-rw-r--r--games/cribbage/instr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/games/cribbage/instr.c b/games/cribbage/instr.c
index 2e310b9..b329e33 100644
--- a/games/cribbage/instr.c
+++ b/games/cribbage/instr.c
@@ -57,7 +57,6 @@ static const char rcsid[] =
void
instructions()
{
- extern int errno;
struct stat sb;
union wait pstat;
pid_t pid;
@@ -75,7 +74,7 @@ instructions()
case 0:
if (!(path = getenv("PAGER")))
path = _PATH_MORE;
- if (pager = rindex(path, '/'))
+ if ((pager = rindex(path, '/')) != NULL)
++pager;
pager = path;
execlp(path, pager, _PATH_INSTR, (char *)NULL);
OpenPOWER on IntegriCloud