From: Vincent Bernat Date: Mon, 7 Jul 2014 07:32:12 +0000 (+0200) Subject: lldpd: fix use of NULL in execl* X-Git-Tag: 0.7.10~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d64549384f6fd46463528fefad34cbeba7e7040e;p=thirdparty%2Flldpd.git lldpd: fix use of NULL in execl* See: http://c-faq.com/null/nullreq.html --- diff --git a/src/daemon/lldpd.c b/src/daemon/lldpd.c index 4c32f277..cc113e35 100644 --- a/src/daemon/lldpd.c +++ b/src/daemon/lldpd.c @@ -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"); }