Commit 80cbc2ef authored by Niklas Rieken's avatar Niklas Rieken

minor chenges, still segfaults

parent d4160c11
......@@ -8,8 +8,8 @@ int max(int a, int b) {
Node* construct_node(int val) {
Node* node;
if ((node = malloc(sizeof(*node))) == NULL) {
node = (Node*) malloc(sizeof(Node));
if (node == NULL) {
return NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment