diff options
author | kleink <kleink@NetBSD.org> | 2000-03-02 18:19:06 +0000 |
---|---|---|
committer | kleink <kleink@NetBSD.org> | 2000-03-02 18:19:06 +0000 |
commit | 908d5a73da0fd92e5435dfd18fbeec1181362849 (patch) | |
tree | 418c5c0781c93d688b78a127dc0ee5ef897eca53 /hack/hack.main.c | |
parent | 0f777f8f9e2615f8b6a3de825d9a7f9cd7ade00d (diff) | |
download | bsdgames-darwin-908d5a73da0fd92e5435dfd18fbeec1181362849.tar.gz bsdgames-darwin-908d5a73da0fd92e5435dfd18fbeec1181362849.tar.zst bsdgames-darwin-908d5a73da0fd92e5435dfd18fbeec1181362849.zip |
POSIX.2: Ignore a null PAGER as well.
Diffstat (limited to 'hack/hack.main.c')
-rw-r--r-- | hack/hack.main.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/hack/hack.main.c b/hack/hack.main.c index 991f577d..7f817da5 100644 --- a/hack/hack.main.c +++ b/hack/hack.main.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.main.c,v 1.4 1997/10/19 16:58:11 christos Exp $ */ +/* $NetBSD: hack.main.c,v 1.5 2000/03/02 18:19:06 kleink Exp $ */ /* * Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. @@ -6,7 +6,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: hack.main.c,v 1.4 1997/10/19 16:58:11 christos Exp $"); +__RCSID("$NetBSD: hack.main.c,v 1.5 2000/03/02 18:19:06 kleink Exp $"); #endif /* not lint */ #include <signal.h> @@ -184,7 +184,9 @@ main(argc, argv) locknum = MAX_NR_OF_PLAYERS; #endif #ifdef DEF_PAGER - if (!(catmore = getenv("HACKPAGER")) && !(catmore = getenv("PAGER"))) + if (((catmore = getenv("HACKPAGER")) == NULL && + (catmore = getenv("PAGER")) == NULL) || + catmore[0] == '\0') catmore = DEF_PAGER; #endif #ifdef MAIL |