From 413a4854b4185461096318c5ba3ea1ff69fe2f32 Mon Sep 17 00:00:00 2001 From: Partho Date: Fri, 11 Apr 2025 13:11:48 -0400 Subject: [PATCH] tweaked get parameter --- src/symbol_table.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/symbol_table.c b/src/symbol_table.c index 913a32b..89d133a 100644 --- a/src/symbol_table.c +++ b/src/symbol_table.c @@ -515,6 +515,11 @@ TableNode *getParameter(TableNode *definition) { "function. Invalid."); return undefined; } + if(definition->additionalinfo == NULL){ + printdebug( + "node has NULL additionalinfo. Invalid."); + return undefined; + } if (strcmp(getType(definition), "primitive function type") != 0) { printdebug( "not checking the parameter of a function -- invalid op");