]> git.sesse.net Git - mlt/commitdiff
fix possible null pointer dereference (coverity-710882)
authorDan Dennedy <dan@dennedy.org>
Fri, 17 Aug 2012 06:40:57 +0000 (23:40 -0700)
committerDan Dennedy <dan@dennedy.org>
Fri, 17 Aug 2012 06:40:57 +0000 (23:40 -0700)
src/framework/mlt_properties.c

index 4f21d68cffdd94da5d0a8b4829d0e0f2f84e8049..92c88c660a624b8fcaf747964a7ae43a4826ee7a 100644 (file)
@@ -483,6 +483,7 @@ int mlt_properties_pass( mlt_properties self, mlt_properties that, const char *p
 
 static inline mlt_property mlt_properties_find( mlt_properties self, const char *name )
 {
+       if ( !name ) return NULL;
        property_list *list = self->local;
        mlt_property value = NULL;
        int key = generate_hash( name );