Initialize variables in node.c
This commit is contained in:
parent
d803ac93dc
commit
0bd116195a
1 changed files with 2 additions and 1 deletions
|
@ -130,7 +130,8 @@ void node_del(node_t *n) {
|
||||||
}
|
}
|
||||||
|
|
||||||
node_t *lookup_node(char *name) {
|
node_t *lookup_node(char *name) {
|
||||||
node_t n = {NULL};
|
node_t n;
|
||||||
|
memset(&n, 0x0, sizeof(node_t));
|
||||||
|
|
||||||
n.name = name;
|
n.name = name;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue