summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2017-12-04 15:00:04 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2017-12-04 15:00:04 +0000
commit26617bb9ce617d49bed128d475c65b853c597664 (patch)
tree512f7311c1d8438bf975adfc8dbb46b5dd8613df /sbin
parent75d7e81db54f143029633abdd557b1d6bda416f9 (diff)
change "if (lp &&" to "if lp != NULL &&".
pointed out by krw
Diffstat (limited to 'sbin')
-rw-r--r--sbin/dhclient/dhclient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c
index 664ea2bab73..94a85602f8d 100644
--- a/sbin/dhclient/dhclient.c
+++ b/sbin/dhclient/dhclient.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhclient.c,v 1.533 2017/12/04 14:56:07 tb Exp $ */
+/* $OpenBSD: dhclient.c,v 1.534 2017/12/04 15:00:03 tb Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -2541,7 +2541,7 @@ get_recorded_lease(struct interface_info *ifi)
break;
}
- if (lp && lp->epoch == 0)
+ if (lp != NULL && lp->epoch == 0)
time(&lp->epoch);
return lp;