summaryrefslogtreecommitdiff
path: root/parse/gram.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse/gram.y')
-rw-r--r--parse/gram.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse/gram.y b/parse/gram.y
index fc29391..c53c763 100644
--- a/parse/gram.y
+++ b/parse/gram.y
@@ -805,7 +805,7 @@ funclit : Tobrace params Tendln blkbody Tcbrace {
fn = $$->lit.fnval;
for (i = 0; i < nlbls; i++) {
lit = lbls[i]->expr.args[0];
- putlbl(fn->func.scope, lbls[i]->lit.lblname, lbls[i]);
+ putlbl(fn->func.scope, lit->lit.lblname, lbls[i]);
}
lfree(&lbls, &nlbls);
}