]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
lib: silent a warning about uninitialized value
authorVincent Bernat <vincent@bernat.im>
Mon, 1 Dec 2014 22:32:40 +0000 (23:32 +0100)
committerVincent Bernat <vincent@bernat.im>
Mon, 1 Dec 2014 22:32:40 +0000 (23:32 +0100)
This is a false positive as the value was guarded by another
value. Nevertheless, let's please the compiler.

src/lib/atom.c

index 4909be00c72f9c15a7823023e938c3529e484113..1d7c741ec3a8ed411fc05a7bddbbc800bbab67cd 100644 (file)
@@ -136,7 +136,7 @@ lldpctl_atom_set_str(lldpctl_atom_t *atom, lldpctl_key_t key,
 {
        lldpctl_atom_t *result = NULL;
        char *end;
-       long int converted;
+       long int converted = 0;
        int isint = 0;
        int bad = 0;