mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-04 13:32:29 +00:00
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:
parent
cd9e154c73
commit
50cb645d1f
1 changed files with 1 additions and 1 deletions
|
@ -499,7 +499,7 @@ gst_device_provider_factory_has_classesv (GstDeviceProviderFactory * factory,
|
||||||
const gchar *found;
|
const gchar *found;
|
||||||
guint len;
|
guint len;
|
||||||
|
|
||||||
if (classes[0] == '\0')
|
if (classes[0] == NULL)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
found = strstr (klass, classes[0]);
|
found = strstr (klass, classes[0]);
|
||||||
|
|
Loading…
Reference in a new issue