From: tb Date: Mon, 4 Dec 2017 15:00:03 +0000 (+0000) Subject: change "if (lp &&" to "if lp != NULL &&". X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5c98ff2f0119480bbe8c636b3a2e1f2396894b9a;p=openbsd change "if (lp &&" to "if lp != NULL &&". pointed out by krw --- 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 @@ -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;