fixed seg fault for non record function calls

This commit is contained in:
Annie
2025-04-11 10:08:23 -04:00
parent 859ff3fd03
commit d7d7d22c72
3 changed files with 35 additions and 26 deletions

View File

@ -335,7 +335,7 @@ SymbolTable *getRecList(TableNode *definition) {
if (strcmp(getType(definition), "record") != 0) {
printdebug(
"not checking the list of types of a record -- invalid "
"op");
"op of type %s", getType(definition));
return NULL;
}
return definition->additionalinfo->RecAdInfo->recordScope;
@ -1423,4 +1423,4 @@ TableNode *printTableNode(TableNode *tn) {
}
return tn;
}
}