]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_properties.c
Fix calloc() parameter ordering
[mlt] / src / framework / mlt_properties.c
index 6982ccafcbaeedc630c880d2f40accb11abcc9fc..6d8ef08bb92f491dfe9898603e82280e9403e5d4 100644 (file)
@@ -91,7 +91,7 @@ int mlt_properties_init( mlt_properties self, void *child )
                self->child = child;
 
                // Allocate the local structure
-               self->local = calloc( sizeof( property_list ), 1 );
+               self->local = calloc( 1, sizeof( property_list ) );
 
                // Increment the ref count
                ( ( property_list * )self->local )->ref_count = 1;
@@ -113,7 +113,7 @@ int mlt_properties_init( mlt_properties self, void *child )
 mlt_properties mlt_properties_new( )
 {
        // Construct a standalone properties object
-       mlt_properties self = calloc( sizeof( struct mlt_properties_s ), 1 );
+       mlt_properties self = calloc( 1, sizeof( struct mlt_properties_s ) );
 
        // Initialise self
        mlt_properties_init( self, NULL );