diff options
author | Per Fogelstrom <pefo@cvs.openbsd.org> | 1996-05-15 13:42:00 +0000 |
---|---|---|
committer | Per Fogelstrom <pefo@cvs.openbsd.org> | 1996-05-15 13:42:00 +0000 |
commit | a9fc1918f1d166c30ca216d07c4d2d057726a85d (patch) | |
tree | 6e8f217eaa310f37fd40205dd82d22fbacbba3bc /usr.sbin/lpr | |
parent | 11cbced3d1ae3d709ad1c9f57450eb4fe2c3a689 (diff) |
previous fix of NULL check reversed
Diffstat (limited to 'usr.sbin/lpr')
-rw-r--r-- | usr.sbin/lpr/lpq/lpq.c | 2 | ||||
-rw-r--r-- | usr.sbin/lpr/lpr/lpr.c | 4 | ||||
-rw-r--r-- | usr.sbin/lpr/lprm/lprm.c | 2 | ||||
-rw-r--r-- | usr.sbin/lpr/pac/pac.c | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/lpr/lpq/lpq.c b/usr.sbin/lpr/lpq/lpq.c index bcd0cc0bcff..02d25b3ca39 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")) == NULL) + if ((p = getenv("PRINTER")) != NULL) printer = p; } diff --git a/usr.sbin/lpr/lpr/lpr.c b/usr.sbin/lpr/lpr/lpr.c index 57c71b3184a..033395bd14d 100644 --- a/usr.sbin/lpr/lpr/lpr.c +++ b/usr.sbin/lpr/lpr/lpr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lpr.c,v 1.4 1996/05/06 06:40:13 pefo Exp $ */ +/* $OpenBSD: lpr.c,v 1.5 1996/05/15 13:41:58 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")) == NULL) + 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 ea6c5dfd1ed..a5b5d865310 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")) == NULL) + if ((p = getenv("PRINTER")) != NULL) printer = p; } diff --git a/usr.sbin/lpr/pac/pac.c b/usr.sbin/lpr/pac/pac.c index eef6a52dbbc..e1a002102f0 100644 --- a/usr.sbin/lpr/pac/pac.c +++ b/usr.sbin/lpr/pac/pac.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pac.c,v 1.5 1996/05/06 06:41:13 pefo Exp $ */ +/* $OpenBSD: pac.c,v 1.6 1996/05/15 13:41:59 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")) == NULL) + if ((p = getenv("PRINTER")) != NULL) printer = p; } if (!chkprinter(printer)) { |