another bugfix, i will never get used to using the retrun value of g_(s)list_prepend
authorBenjamin Otte <otte@gnome.org>
Thu, 17 Apr 2003 14:52:38 +0000 (14:52 +0000)
committerBenjamin Otte <otte@gnome.org>
Thu, 17 Apr 2003 14:52:38 +0000 (14:52 +0000)
Original commit message from CVS:
another bugfix, i will never get used to using the retrun value of g_(s)list_prepend

gst/parse/grammar.y

index e1c710b..050a78c 100644 (file)
@@ -642,7 +642,7 @@ chain:      element                       { $$ = gst_parse_chain_new ();
                                        
        |       chain linklist                { GSList *walk;
                                                if ($1->back) {
-                                                 g_slist_prepend ($2, $1->back);
+                                                 $2 = g_slist_prepend ($2, $1->back);
                                                  $1->back = NULL;
                                                } else {
                                                  if (!((link_t *) $2->data)->src_name) {