From 4bfe49e965c5bce3ba4b973c19edc6c7485ac07e Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 1 Dec 2014 23:32:40 +0100 Subject: [PATCH] lib: silent a warning about uninitialized value This is a false positive as the value was guarded by another value. Nevertheless, let's please the compiler. --- src/lib/atom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/atom.c b/src/lib/atom.c index 4909be00..1d7c741e 100644 --- a/src/lib/atom.c +++ b/src/lib/atom.c @@ -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; -- 2.39.5