From 908d5a73da0fd92e5435dfd18fbeec1181362849 Mon Sep 17 00:00:00 2001 From: kleink Date: Thu, 2 Mar 2000 18:19:06 +0000 Subject: POSIX.2: Ignore a null PAGER as well. --- hack/hack.main.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'hack/hack.main.c') 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 #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 @@ -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 -- cgit v1.2.3-56-ge451