fixed seg fault for non record function calls
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user