]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
lldpcli: ensure `conn` is initialized to NULL to avoid a compiler warning
authorVincent Bernat <bernat@luffy.cx>
Sat, 5 Jan 2013 19:44:53 +0000 (20:44 +0100)
committerVincent Bernat <bernat@luffy.cx>
Sat, 5 Jan 2013 19:44:53 +0000 (20:44 +0100)
src/client/lldpcli.c

index 714b8cbc70f78335373c325a3204bc63a0d982ab..92324e88eab28c5aa1468b78e6ba615c60239647 100644 (file)
@@ -197,7 +197,7 @@ main(int argc, char *argv[])
 {
        int ch, debug = 1, rc = EXIT_FAILURE;
        char *fmt = "plain";
-       lldpctl_conn_t *conn;
+       lldpctl_conn_t *conn = NULL;
        struct writer *w;
 
        EditLine  *el = NULL;