mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-02-05 13:38:33 +00:00
Initialize special_t when allocating it (this should fix sf.net #3138243)
This commit is contained in:
parent
87591f502e
commit
41dc5db094
@ -279,8 +279,7 @@ struct special_t *new_special_t_node()
|
|||||||
{
|
{
|
||||||
special_t *newnode = new special_t;
|
special_t *newnode = new special_t;
|
||||||
|
|
||||||
newnode->graph = NULL;
|
memset(newnode, 0, sizeof *newnode);
|
||||||
newnode->next = NULL;
|
|
||||||
return newnode;
|
return newnode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user