From: pefo Date: Mon, 6 May 1996 06:39:38 +0000 (+0000) Subject: Missing ' == NULL)' added... X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f52bc0f12d9d4f86a50e95096b5166f5cf64425c;p=openbsd Missing ' == NULL)' added... --- diff --git a/usr.sbin/lpr/lpq/lpq.c b/usr.sbin/lpr/lpq/lpq.c index 8559dc93cda..bcd0cc0bcff 100644 --- a/usr.sbin/lpr/lpq/lpq.c +++ b/usr.sbin/lpr/lpq/lpq.c @@ -108,7 +108,7 @@ main(argc, argv) char *p; printer = DEFLP; - if ((p = getenv("PRINTER")) + if ((p = getenv("PRINTER")) == NULL) printer = p; } diff --git a/usr.sbin/lpr/lpr/lpr.c b/usr.sbin/lpr/lpr/lpr.c index bd299a8d7f6..57c71b3184a 100644 --- a/usr.sbin/lpr/lpr/lpr.c +++ b/usr.sbin/lpr/lpr/lpr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lpr.c,v 1.3 1996/05/04 11:52:55 deraadt Exp $ */ +/* $OpenBSD: lpr.c,v 1.4 1996/05/06 06:40:13 pefo Exp $ */ /* $NetBSD: lpr.c,v 1.10 1996/03/21 18:12:25 jtc Exp $ */ /* @@ -264,7 +264,7 @@ main(argc, argv) char *p; printer = DEFLP; - if ((p = getenv("PRINTER")) + if ((p = getenv("PRINTER")) == NULL) printer = p; } chkprinter(printer); diff --git a/usr.sbin/lpr/lprm/lprm.c b/usr.sbin/lpr/lprm/lprm.c index 88607c2083f..ea6c5dfd1ed 100644 --- a/usr.sbin/lpr/lprm/lprm.c +++ b/usr.sbin/lpr/lprm/lprm.c @@ -137,7 +137,7 @@ main(argc, argv) char *p; printer = DEFLP; - if ((p = getenv("PRINTER")) + if ((p = getenv("PRINTER")) == NULL) printer = p; } diff --git a/usr.sbin/lpr/pac/pac.c b/usr.sbin/lpr/pac/pac.c index 36e15f253f7..eef6a52dbbc 100644 --- a/usr.sbin/lpr/pac/pac.c +++ b/usr.sbin/lpr/pac/pac.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pac.c,v 1.4 1996/05/04 11:53:05 deraadt Exp $ */ +/* $OpenBSD: pac.c,v 1.5 1996/05/06 06:41:13 pefo Exp $ */ /* $NetBSD: pac.c,v 1.7 1996/03/21 18:21:20 jtc Exp $ */ /* @@ -173,7 +173,7 @@ fprintf(stderr, char *p; printer = DEFLP; - if ((p = getenv("PRINTER")) + if ((p = getenv("PRINTER")) == NULL) printer = p; } if (!chkprinter(printer)) {