tag: xmp: Init char variable for gps coordinates
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Mon, 14 Jun 2010 18:05:16 +0000 (15:05 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Mon, 14 Jun 2010 18:05:16 +0000 (15:05 -0300)
Initialize char variable for gps coordinates deserialization to 0
to identify when it couldn't be parsed/found and error out.

Fixes #621509

gst-libs/gst/tag/gstxmptag.c

index 97867a7..9513c80 100644 (file)
@@ -253,7 +253,7 @@ deserialize_exif_gps_coordinate (GstTagList * taglist, const gchar * gst_tag,
   gdouble value = 0;
   gint d = 0, m = 0, s = 0;
   gdouble m2 = 0;
-  gchar c;
+  gchar c = 0;
   const gchar *current;
 
   /* get the degrees */