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:
1ca248b
)
binary registry: comparing arrays against NULL is useless
author
Stefan Kost
<ensonic@users.sf.net>
Thu, 5 Feb 2009 13:56:19 +0000
(15:56 +0200)
committer
Stefan Kost
<ensonic@users.sf.net>
Thu, 5 Feb 2009 13:56:19 +0000
(15:56 +0200)
gst/gstregistrybinary.c
patch
|
blob
|
history
diff --git
a/gst/gstregistrybinary.c
b/gst/gstregistrybinary.c
index
fe3119f
..
54a27d4
100644
(file)
--- a/
gst/gstregistrybinary.c
+++ b/
gst/gstregistrybinary.c
@@
-788,7
+788,7
@@
gst_registry_binary_check_magic (gchar ** in, gsize size)
GST_DEBUG ("Reading/casting for GstBinaryRegistryMagic at address %p", *in);
unpack_element (*in, m, GstBinaryRegistryMagic);
- if (m == NULL ||
m->magic == NULL ||
m->version == NULL) {
+ if (m == NULL ||
&m->magic == NULL || &
m->version == NULL) {
GST_WARNING ("Binary registry magic structure is broken");
return -1;
}