Initializacia
This commit is contained in:
parent
cf685571c5
commit
d2efa5d900
@ -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() {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user