diff --git a/program.c b/program.c index 1d06b8d..3290e0c 100644 --- a/program.c +++ b/program.c @@ -31,7 +31,7 @@ assert(r); struct tree* node = calloc(1,sizeof(struct node)); memcpy(node->value,buffer,SIZE); - return node; + return *node; }; void traverse(struct node* tree){