]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
lldpd: fix use of NULL in execl*
authorVincent Bernat <vincent@bernat.im>
Mon, 7 Jul 2014 07:32:12 +0000 (09:32 +0200)
committerVincent Bernat <vincent@bernat.im>
Tue, 8 Jul 2014 19:29:40 +0000 (21:29 +0200)
See:
 http://c-faq.com/null/nullreq.html

src/daemon/lldpd.c

index 4c32f277d96058dbd97833e0cc6bf0b4b4dde2a2..cc113e35ec40db9ed48e78861e0003e1da592d6b 100644 (file)
@@ -1140,7 +1140,7 @@ lldpd_configure(int debug, const char *path, const char *ctlname)
                            "-c", SYSCONFDIR "/lldpd.conf",
                            "-c", SYSCONFDIR "/lldpd.d",
                            "resume",
-                           NULL);
+                           (char *)NULL);
                        log_warn("main", "unable to execute %s", path);
                        log_warnx("main", "configuration is incomplete, lldpd needs to be unpaused");
                }