From ee9e324e9ff05ffb0dce076463e2ff397377ce11 Mon Sep 17 00:00:00 2001 From: Kozar Date: Tue, 12 Nov 2024 12:53:51 +0000 Subject: [PATCH] Initializacia --- cv7/program.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cv7/program.c b/cv7/program.c index 9b3f929..3c7eabe 100644 --- a/cv7/program.c +++ b/cv7/program.c @@ -42,6 +42,13 @@ struct tree* load_tree() { destroy_tree(node); return NULL; } + } else { + struct tree* extra = read_tree(); + if (extra) { + free(extra); + destroy_tree(node); + return NULL; + } } return node; @@ -49,6 +56,7 @@ struct tree* load_tree() { + void run_tree(struct tree* tree) { if (!tree) { return; @@ -115,3 +123,4 @@ int main() { return 0; } +