Initializacia

This commit is contained in:
Kozar 2024-11-12 13:01:20 +00:00
parent d2efa5d900
commit 724940804f

View File

@ -45,13 +45,6 @@ struct tree* load_tree() {
destroy_tree(node); destroy_tree(node);
return NULL; return NULL;
} }
} else {
struct tree* extra = read_tree();
if (extra) {
free(extra);
destroy_tree(node);
return NULL;
}
} }
return node; return node;
@ -61,7 +54,6 @@ struct tree* load_tree() {
void run_tree(struct tree* tree) { void run_tree(struct tree* tree) {
if (!tree) { if (!tree) {
return; return;
@ -129,4 +121,3 @@ int main() {
} }