Update cv7/program.c

This commit is contained in:
Yurii Yakovenko 2024-11-11 23:03:54 +00:00
parent f677e35a6a
commit f7d61b0bbf

View File

@ -21,7 +21,7 @@ struct tree* read_tree()
memset(buffer,0,SIZE); memset(buffer,0,SIZE);
char* r = fgets(buffer,SIZE,stdin); char* r = fgets(buffer,SIZE,stdin);
assert(r); if(r==NULL) return NULL;
if(buffer[0]=='\n') if(buffer[0]=='\n')
return NULL; return NULL;
@ -140,4 +140,3 @@ int main(void)
} }