From db5d418282f552052ede2a1dd34a8cd8f722c1a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 26 Jul 2010 18:23:33 +0200 Subject: [PATCH] tag: initialize datetime variable in xmp tag parsing code Fixes (correct) compiler warning on the OSX build bot. --- gst-libs/gst/tag/gstxmptag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/tag/gstxmptag.c b/gst-libs/gst/tag/gstxmptag.c index e0d05575cf..9c999c0763 100644 --- a/gst-libs/gst/tag/gstxmptag.c +++ b/gst-libs/gst/tag/gstxmptag.c @@ -877,7 +877,7 @@ read_one_tag (GstTagList * list, const gchar * tag, XmpTag * xmptag, } default: if (tag_type == GST_TYPE_DATE_TIME) { - GstDateTime *datetime; + GstDateTime *datetime = NULL; gint year = 0, month = 0, day = 0, hour = 0, minute = 0, second = 0; gint usecs = 0; gint gmt_offset_hour = -1, gmt_offset_min = -1, gmt_offset = -1;