diff options
Diffstat (limited to 'src/gram.y')
-rw-r--r-- | src/gram.y | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -170,3 +170,3 @@ slist : string { - $$.head = $$.tail = slist_new ($1); + $$.head = $$.tail = slist_new_s ($1); } @@ -174,5 +174,4 @@ slist : string { - struct slist *s = slist_new ($3); - $1.tail->next = s; - $1.tail = s; + struct slist *s = slist_new_s ($3); + slist_insert (&$1.tail, s); $$ = $1; |