From 4284490080859108015960be6a8bfc5baad6f30f Mon Sep 17 00:00:00 2001 From: Nikolas Garofil Date: Sat, 18 Jul 2009 11:37:15 +0200 Subject: [PATCH] If nothing is read, n1 and n2 are not guaranteed to be 0 --- src/conky.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conky.c b/src/conky.c index f82b522e..9809943d 100644 --- a/src/conky.c +++ b/src/conky.c @@ -2941,7 +2941,7 @@ static struct text_object *construct_text_object(const char *s, CRIT_ERR(obj, free_at_crash, "to_bytes needs a argument"); } END OBJ(scroll, 0) - int n1, n2; + int n1 = 0, n2 = 0; obj->data.scroll.step = 1; if (arg && sscanf(arg, "%u %n", &obj->data.scroll.show, &n1) > 0) {