Initializacia

This commit is contained in:
Kozar 2024-11-12 13:00:16 +00:00
parent cf685571c5
commit d2efa5d900

View File

@ -45,6 +45,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;
@ -54,6 +61,7 @@ struct tree* load_tree() {
void run_tree(struct tree* tree) {
if (!tree) {
return;
@ -121,3 +129,4 @@ int main() {
}