binary registry: comparing arrays against NULL is useless

This commit is contained in:
Stefan Kost 2009-02-05 15:56:19 +02:00
parent 1ca248bac6
commit c69a262889

View 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;
}