aboutsummaryrefslogtreecommitdiff
path: root/pc.y
diff options
context:
space:
mode:
Diffstat (limited to 'pc.y')
-rw-r--r--pc.y3
1 files changed, 3 insertions, 0 deletions
diff --git a/pc.y b/pc.y
index 1ada604..4c4b276 100644
--- a/pc.y
+++ b/pc.y
@@ -219,6 +219,7 @@ sub_prog_head
tmp->func_info = malloc(sizeof(struct fi));
assert(tmp->func_info);
+ tmp->func_info->argv = NULL;
tmp->func_info->argc = i;
assert(tmp->func_info->argv = malloc(i * sizeof(int)));
@@ -247,7 +248,9 @@ sub_prog_head
tmp->func_info = malloc(sizeof(struct fi));
assert(tmp->func_info);
+ tmp->func_info->argv = NULL;
tmp->func_info->argc = i;
+
assert(tmp->func_info->argv = malloc(i * sizeof(int)));
assert(!set_func_types($3, tmp->func_info->argv, i));