From fecb764e2ffcff19302871fd63da9a0e239083f3 Mon Sep 17 00:00:00 2001 From: Leo Singer Date: Sat, 4 Sep 2010 09:06:08 +0200 Subject: [PATCH] exiftag: Fix compiler warnings with old gcc versions Old gcc complains about possibly uninitialized variables which are always initialized before usage in reality. Fixes bug #628747. --- gst-libs/gst/tag/gstexiftag.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gst-libs/gst/tag/gstexiftag.c b/gst-libs/gst/tag/gstexiftag.c index 6ba3b83..2af7e86 100644 --- a/gst-libs/gst/tag/gstexiftag.c +++ b/gst-libs/gst/tag/gstexiftag.c @@ -1201,8 +1201,8 @@ exif_reader_read_rational_tag (GstExifReader * exif_reader, { GstByteReader data_reader; guint32 real_offset; - gint32 frac_n; - gint32 frac_d; + gint32 frac_n = 0; + gint32 frac_d = 0; if (count > 1) { GST_WARNING ("Rationals with multiple entries are not supported"); @@ -1225,7 +1225,7 @@ exif_reader_read_rational_tag (GstExifReader * exif_reader, goto reader_fail; if (!is_signed) { - guint32 aux_n, aux_d; + guint32 aux_n = 0, aux_d = 0; if (exif_reader->byte_order == G_LITTLE_ENDIAN) { if (!gst_byte_reader_get_uint32_le (&data_reader, &aux_n) || !gst_byte_reader_get_uint32_le (&data_reader, &aux_d)) -- 2.7.4