From f2fb132b9c4b8ed008a3784f6f942119dbd74277 Mon Sep 17 00:00:00 2001 From: Benoit Fouet Date: Thu, 17 Jul 2008 13:54:38 +0000 Subject: [PATCH] sys/v4l2/gstv4l2src.c: Avoid compiler warning by initialising variable to NULL (#543259). Original commit message from CVS: Patch by: Benoit Fouet * sys/v4l2/gstv4l2src.c: (gst_v4l2src_negotiate): Avoid compiler warning by initialising variable to NULL (#543259). --- ChangeLog | 7 +++++++ sys/v4l2/gstv4l2src.c | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index ff74c50..de6c6e0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-07-17 Tim-Philipp Müller + + Patch by: Benoit Fouet + + * sys/v4l2/gstv4l2src.c: (gst_v4l2src_negotiate): + Avoid compiler warning by initialising variable to NULL (#543259). + 2008-07-14 Sebastian Dröge * gst/debug/gsttaginject.c: (gst_tag_inject_start): diff --git a/sys/v4l2/gstv4l2src.c b/sys/v4l2/gstv4l2src.c index a6919b9..ce4b223 100644 --- a/sys/v4l2/gstv4l2src.c +++ b/sys/v4l2/gstv4l2src.c @@ -476,8 +476,7 @@ gst_v4l2src_negotiate (GstBaseSrc * basesrc) peercaps = gst_pad_peer_get_caps (GST_BASE_SRC_PAD (basesrc)); GST_DEBUG_OBJECT (basesrc, "caps of peer: %" GST_PTR_FORMAT, peercaps); if (peercaps && !gst_caps_is_any (peercaps)) { - GstCaps *icaps; - + GstCaps *icaps = NULL; int i; /* Prefer the first caps we are compatible with that the peer proposed */ -- 2.7.4