]> git.sesse.net Git - mlt/commitdiff
fix memory read error found by valgrind
authorDan Dennedy <dan@dennedy.org>
Tue, 24 Jul 2012 06:09:52 +0000 (23:09 -0700)
committerDan Dennedy <dan@dennedy.org>
Tue, 24 Jul 2012 06:09:52 +0000 (23:09 -0700)
src/framework/mlt_properties.c

index 4f691e1d03b96230853924b2258efc7135a942ec..6982ccafcbaeedc630c880d2f40accb11abcc9fc 100644 (file)
@@ -617,7 +617,8 @@ int mlt_properties_pass_list( mlt_properties self, mlt_properties that, const ch
                mlt_properties_pass_property( self, that, ptr );
 
                ptr += count + 1;
-               ptr += strspn( ptr, delim );
+               if ( !done )
+                       ptr += strspn( ptr, delim );
        }
 
        free( props );