From: Víctor Manuel Jáquez Leal Date: Mon, 10 Jul 2017 11:27:40 +0000 (+0200) Subject: kmssink: initialize variable X-Git-Tag: 1.19.3~507^2~5086 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c538942b0d4746a37d6ac779fc28e4b9fc704cfb;p=platform%2Fupstream%2Fgstreamer.git kmssink: initialize variable Otherwise clang complains: gstkmssink.c:1192:7: warning: variable 'buf' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] --- diff --git a/sys/kms/gstkmssink.c b/sys/kms/gstkmssink.c index e990039d5f..bf92e6d9e8 100644 --- a/sys/kms/gstkmssink.c +++ b/sys/kms/gstkmssink.c @@ -1189,6 +1189,7 @@ gst_kms_sink_copy_to_dumb_buffer (GstKMSSink * self, GstBuffer * inbuf) gboolean success; GstBuffer *buf; + buf = NULL; if (!gst_buffer_pool_set_active (self->pool, TRUE)) goto activate_pool_failed;