Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/dhcpcd/dist CID 1358676: Forward NULL.



details:   https://anonhg.NetBSD.org/src/rev/05ff7b2311d9
branches:  trunk
changeset: 815001:05ff7b2311d9
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Apr 24 18:16:05 2016 +0000

description:
CID 1358676: Forward NULL.

diffstat:

 external/bsd/dhcpcd/dist/dhcp-common.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 7fe67afc1484 -r 05ff7b2311d9 external/bsd/dhcpcd/dist/dhcp-common.c
--- a/external/bsd/dhcpcd/dist/dhcp-common.c    Sun Apr 24 18:11:43 2016 +0000
+++ b/external/bsd/dhcpcd/dist/dhcp-common.c    Sun Apr 24 18:16:05 2016 +0000
@@ -1,5 +1,5 @@
 #include <sys/cdefs.h>
- __RCSID("$NetBSD: dhcp-common.c,v 1.14 2016/04/20 08:53:01 roy Exp $");
+ __RCSID("$NetBSD: dhcp-common.c,v 1.15 2016/04/24 18:16:05 christos Exp $");
 
 /*
  * dhcpcd - DHCP client daemon
@@ -210,7 +210,7 @@
                        continue;
                match = 0;
                for (i = 0, opt = odopts; i < odopts_len; i++, opt++) {
-                       if (opt->var == NULL && opt->option == 0)
+                       if (opt->var == NULL)
                                continue; /* buggy dhcpcd-definitions.conf */
                        if (strcmp(opt->var, token) == 0)
                                match = 1;



Home | Main Index | Thread Index | Old Index