summaryrefslogtreecommitdiff
path: root/6
diff options
context:
space:
mode:
authorOri Bernstein <ori@markovcorp.com>2017-02-13 18:15:38 -0800
committerOri Bernstein <ori@markovcorp.com>2017-02-13 18:15:38 -0800
commit0139ee45f197942d81737539f64d9723968181ba (patch)
tree476677a88e6d136c600012bdbb1b3fbecb188fd7 /6
parent6fb3068098ac00cf2ebe8c5ec6b463a145662f92 (diff)
downloadmc-0139ee45f197942d81737539f64d9723968181ba.tar.gz
Initialize size correctly.
Diffstat (limited to '6')
-rw-r--r--6/blob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/6/blob.c b/6/blob.c
index 133a4d2..2872df1 100644
--- a/6/blob.c
+++ b/6/blob.c
@@ -269,9 +269,9 @@ static size_t blobrec(Blob *b, Htab *globls, Htab *strtab, Node *n)
case Otup:
case Oarr:
/* Assumption: We sorted this while folding */
+ sz = 0;
if (!n->expr.args)
break;
- sz = 0;
for (i = 0; i < n->expr.nargs; i++) {
end = alignto(sz, exprtype(n->expr.args[i]));
sz += blobpad(b, end - sz);