mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-28 04:55:08 +00:00
If nothing is read, n1 and n2 are not guaranteed to be 0
This commit is contained in:
parent
b94569b27b
commit
4284490080
@ -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");
|
CRIT_ERR(obj, free_at_crash, "to_bytes needs a argument");
|
||||||
}
|
}
|
||||||
END OBJ(scroll, 0)
|
END OBJ(scroll, 0)
|
||||||
int n1, n2;
|
int n1 = 0, n2 = 0;
|
||||||
|
|
||||||
obj->data.scroll.step = 1;
|
obj->data.scroll.step = 1;
|
||||||
if (arg && sscanf(arg, "%u %n", &obj->data.scroll.show, &n1) > 0) {
|
if (arg && sscanf(arg, "%u %n", &obj->data.scroll.show, &n1) > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user