diff options
Diffstat (limited to 'pc.y')
-rw-r--r-- | pc.y | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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)); |