dcaparse: initialize size variable
authorVineeth TM <vineeth.tm@samsung.com>
Mon, 22 Jun 2015 04:16:08 +0000 (13:16 +0900)
committerLuis de Bethencourt <luis.bg@samsung.com>
Mon, 22 Jun 2015 09:58:35 +0000 (10:58 +0100)
size can be used in cleanup without being initialized. Hence
setting it to 0 when declaring

https://bugzilla.gnome.org/show_bug.cgi?id=751306

gst/audioparsers/gstdcaparse.c

index 4b1a6ea..de73856 100644 (file)
@@ -324,7 +324,7 @@ gst_dca_parse_handle_frame (GstBaseParse * parse,
   gboolean parser_in_sync;
   gboolean terminator;
   guint32 sync = 0;
-  guint size, rate, chans, num_blocks, samples_per_block, depth;
+  guint size = 0, rate, chans, num_blocks, samples_per_block, depth;
   gint block_size;
   gint endianness;
   gint off = -1;