diff --git a/src/splay_tree.c b/src/splay_tree.c index bd0f06b6..e37bfd63 100644 --- a/src/splay_tree.c +++ b/src/splay_tree.c @@ -25,11 +25,14 @@ /* Splay operation */ static splay_node_t *splay_top_down(splay_tree_t *tree, const void *data, int *result) { - splay_node_t left = {NULL}, right = {NULL}; + splay_node_t left, right; splay_node_t *leftbottom = &left, *rightbottom = &right, *child, *grandchild; splay_node_t *root = tree->root; int c; + memset(&left, 0x0, sizeof(splay_node_t)); + memset(&right, 0x0, sizeof(splay_node_t)); + if(!root) { if(result) *result = 0;