projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd9e154
)
deviceproviderfactory: compare class against NULL
author
Wim Taymans
<wtaymans@redhat.com>
Mon, 20 Feb 2017 09:25:50 +0000
(10:25 +0100)
committer
Wim 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
patch
|
blob
|
history
diff --git
a/gst/gstdeviceproviderfactory.c
b/gst/gstdeviceproviderfactory.c
index
cb4b459
..
bb63fb7
100644
(file)
--- a/
gst/gstdeviceproviderfactory.c
+++ b/
gst/gstdeviceproviderfactory.c
@@
-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]);