From: Benjamin Otte Date: Tue, 8 Jul 2003 13:18:30 +0000 (+0000) Subject: fix bogus warning X-Git-Tag: BRANCH-ERROR-ROOT~124 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f88ed0bae197b77f49c54e3037bfcc1dcc0ed2c4;p=platform%2Fupstream%2Fgstreamer.git fix bogus warning Original commit message from CVS: fix bogus warning --- diff --git a/gst/gstprops.c b/gst/gstprops.c index 77981bf..bf976dd 100644 --- a/gst/gstprops.c +++ b/gst/gstprops.c @@ -685,7 +685,7 @@ G_STMT_START { \ entry->propstype = va_arg (var_args, GstPropsType); \ if (entry->propstype == GST_PROPS_LIST_TYPE) { \ GList *_list = NULL; \ - GstPropsEntry *_cur; \ + GstPropsEntry *_cur = NULL; /* initialize so gcc doesn't complain */ \ GstPropsType _cur_type; \ GstPropsType _type = va_arg (var_args, GstPropsType); \ _cur_type = _type; \ @@ -704,7 +704,7 @@ G_STMT_START { \ } \ _cur_type = va_arg (var_args, GstPropsType); \ } \ - if (g_list_next (_list)) { \ + if (_list && g_list_next (_list)) { \ entry->data.list_data.entries = _list; \ } else { \ entry->propstype = _cur->propstype; \