1
0
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:
Pavel Labath 2011-01-05 13:54:04 +01:00
parent 87591f502e
commit 41dc5db094

View File

@ -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;
} }