Fix a 'vorbistag might be used uninitialised' warning
authorJan Schmidt <thaytan@mad.scientist.com>
Wed, 26 Nov 2003 12:15:57 +0000 (12:15 +0000)
committerJan Schmidt <thaytan@mad.scientist.com>
Wed, 26 Nov 2003 12:15:57 +0000 (12:15 +0000)
Original commit message from CVS:
Fix a 'vorbistag might be used uninitialised' warning

ext/vorbis/vorbisenc.c

index 9b37db3..7dc9cdd 100644 (file)
@@ -474,7 +474,8 @@ gst_vorbisenc_init (VorbisEnc * vorbisenc)
 static void
 gst_vorbisenc_metadata_set1 (const GstTagList *list, const gchar *tag, gpointer vorbisenc)
 {
-  gchar *vorbistag, *vorbisvalue;
+  gchar *vorbistag = NULL;
+  gchar *vorbisvalue = NULL;
   guint i, count;
   VorbisEnc *enc = GST_VORBISENC (vorbisenc);