1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-27 04:32:55 +00:00

If nothing is read, n1 and n2 are not guaranteed to be 0

This commit is contained in:
Nikolas Garofil 2009-07-18 11:37:15 +02:00
parent b94569b27b
commit 4284490080

View File

@ -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) {