summaryrefslogtreecommitdiffstats
path: root/src/parser.y
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.y')
-rw-r--r--src/parser.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser.y b/src/parser.y
index f6c9488a..2050f8a3 100644
--- a/src/parser.y
+++ b/src/parser.y
@@ -497,7 +497,7 @@ input : /* empty */
if (++state->nerrs == max_errors)
YYABORT;
} else
- list_add_tail(&$2->list, &state->cmds);
+ list_splice_tail(&$2->list, &state->cmds);
}
}
;
@@ -560,7 +560,7 @@ line : common_block { $$ = NULL; }
if (++state->nerrs == max_errors)
YYABORT;
} else
- list_add_tail(&$1->list, &state->cmds);
+ list_splice_tail(&$1->list, &state->cmds);
}
$$ = NULL;