deviceproviderfactory: compare class against NULL

gstdeviceproviderfactory.c:501:20: error: comparison between pointer and zero character constant [-Werror=pointer-compare]
     if (classes[0] == '\0')
This commit is contained in:
Wim Taymans 2017-02-20 10:25:50 +01:00
parent cd9e154c73
commit 50cb645d1f

View 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]);