vpxdec: Initialize buffer variable to NULL
authorSebastian Dröge <sebastian@centricular.com>
Tue, 29 Dec 2015 15:58:38 +0000 (17:58 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 29 Dec 2015 15:58:38 +0000 (17:58 +0200)
False positive but trivial to fix and possibly causing compiler warnings at
some point in the future too.

CID 1346535

ext/vpx/gstvpxdec.c

index fc75a7b..1d2ddca 100644 (file)
@@ -401,7 +401,7 @@ gst_vpx_dec_get_buffer_cb (gpointer priv, gsize min_size,
     vpx_codec_frame_buffer_t * fb)
 {
   GstVPXDec *dec = priv;
-  GstBuffer *buffer;
+  GstBuffer *buffer = NULL;
   struct Frame *frame;
   GstFlowReturn ret;