fixed segfault, but am now having a new unknown one :(

This commit is contained in:
Scarlett
2025-04-07 17:00:24 -04:00
parent 4058b090a0
commit e7ee370dcf
3 changed files with 9 additions and 10 deletions

View File

@ -1150,6 +1150,11 @@ TableNode *printTableNode(TableNode *tn) {
printdebug("%s[PrintTN] Passed a NULL tablenode!", COLOR_RED);
return undefined;
}
if (tn == undefined) {
printdebug("%s[PrintTN] Passed an undefined tablenode!",
COLOR_RED);
return undefined;
}
if (tn->theName == NULL) {
printdebug("%s[PrintTN] Passed a tablenode with NULL name!",
COLOR_RED);
@ -1160,11 +1165,6 @@ TableNode *printTableNode(TableNode *tn) {
COLOR_RED);
return undefined;
}
if (tn == undefined) {
printdebug("%s[PrintTN] Passed an undefined tablenode!",
COLOR_RED);
return undefined;
}
if (tn->additionalinfo == NULL) {
printdebug(
"%s[PrintTN] Passed a tablenode with NULL additional info!",