binary registry: comparing arrays against NULL is useless
authorStefan Kost <ensonic@users.sf.net>
Thu, 5 Feb 2009 13:56:19 +0000 (15:56 +0200)
committerStefan Kost <ensonic@users.sf.net>
Thu, 5 Feb 2009 13:56:19 +0000 (15:56 +0200)
gst/gstregistrybinary.c

index fe3119f..54a27d4 100644 (file)
@@ -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;
   }