From f2fb132b9c4b8ed008a3784f6f942119dbd74277 Mon Sep 17 00:00:00 2001 From: Benoit Fouet Date: Thu, 17 Jul 2008 13:54:38 +0000 Subject: 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). --- sys/v4l2/gstv4l2src.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/v4l2/gstv4l2src.c b/sys/v4l2/gstv4l2src.c index a6919b97..ce4b2237 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 */ -- cgit