deviceproviderfactory: compare class against NULL
authorWim Taymans <wtaymans@redhat.com>
Mon, 20 Feb 2017 09:25:50 +0000 (10:25 +0100)
committerWim Taymans <wtaymans@redhat.com>
Mon, 20 Feb 2017 09:25:50 +0000 (10:25 +0100)
gstdeviceproviderfactory.c:501:20: error: comparison between pointer and zero character constant [-Werror=pointer-compare]
     if (classes[0] == '\0')

gst/gstdeviceproviderfactory.c

index cb4b459..bb63fb7 100644 (file)
@@ -499,7 +499,7 @@ gst_device_provider_factory_has_classesv (GstDeviceProviderFactory * factory,
     const gchar *found;
     guint len;
 
-    if (classes[0] == '\0')
+    if (classes[0] == NULL)
       continue;
 
     found = strstr (klass, classes[0]);