aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--semantics.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/semantics.c b/semantics.c
index ab802aa..b66f93b 100644
--- a/semantics.c
+++ b/semantics.c
@@ -1068,7 +1068,10 @@ ExpType semantics_exp(CNode *p, CScope_t scope) {
switch (p->rec.subtype)
{
/* following cases are binary expressions */
- case ',': res = op2; break;
+ case ',':
+ res = op2;
+ res.lval = 0;
+ break;
case '=' :
case ASS_MUL:
case ASS_DIV: