summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-08-29 14:24:26 +0000
committerAndreas Baumann <mail@andreasbaumann.cc>2020-08-29 14:24:26 +0000
commit60aa83189e70d22e1056ec5dd3657c0a6ac1bcd0 (patch)
treecf9c3e09f9b338fda1272e74d0f6ecdfc67f1794
parent8e61ffad808f8874148141e0541b7a84cc0b7145 (diff)
downloadcompilertests-60aa83189e70d22e1056ec5dd3657c0a6ac1bcd0.tar.gz
compilertests-60aa83189e70d22e1056ec5dd3657c0a6ac1bcd0.tar.bz2
fixed some uninitialized memory
-rw-r--r--ecomp-c/ec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ecomp-c/ec.c b/ecomp-c/ec.c
index c309f1d..3c0d0f6 100644
--- a/ecomp-c/ec.c
+++ b/ecomp-c/ec.c
@@ -1624,6 +1624,7 @@ static void parseProcedureCall( Scope *scope )
}
nof_actual_params = 0;
+ head = NULL;
if( sym == S_lparen ) {
head = parseParameterList( scope );
@@ -2160,7 +2161,7 @@ static void parseProcedureDeclaration( Scope *scope )
char *procedure_label;
Symbol *symbol;
int size_locals;
- int size_params;
+ int size_params = 0;
Expect( S_procedure );
if( sym != S_ident ) {