v4l: fix compiler warning
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 25 Sep 2009 14:32:18 +0000 (15:32 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 7 Oct 2009 09:15:52 +0000 (10:15 +0100)
Fix 'variable may be used uninitialized' compiler warning (which is
true in theory, but can't actually ever happen, since we always
call the function with check=FALSE).

Fixes #596313.

sys/v4l/gstv4lelement.c

index 81a76d4..27fae75 100644 (file)
@@ -122,7 +122,7 @@ static gboolean
 gst_v4l_class_probe_devices_with_udev (GstV4lElementClass * klass,
     gboolean check)
 {
-  GUdevClient *client;
+  GUdevClient *client = NULL;
   GList *item;
 
   if (!check) {