diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2017-12-04 15:00:04 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2017-12-04 15:00:04 +0000 |
commit | 26617bb9ce617d49bed128d475c65b853c597664 (patch) | |
tree | 512f7311c1d8438bf975adfc8dbb46b5dd8613df /sbin | |
parent | 75d7e81db54f143029633abdd557b1d6bda416f9 (diff) |
change "if (lp &&" to "if lp != NULL &&".
pointed out by krw
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/dhclient/dhclient.c | 4 |
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; |