]> git.sesse.net Git - mlt/blobdiff - src/modules/xml/consumer_xml.c
Fix calloc() parameter ordering
[mlt] / src / modules / xml / consumer_xml.c
index 8ed27204d293cb5a4d25c5958b4bbab0788e93f8..883ee7de32f49f39147fc882f15748b188fa2fd9 100644 (file)
@@ -186,7 +186,7 @@ static char *xml_get_id( serialise_context context, mlt_service service, xml_typ
 mlt_consumer consumer_xml_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg )
 {
        // Create the consumer object
-       mlt_consumer this = calloc( sizeof( struct mlt_consumer_s ), 1 );
+       mlt_consumer this = calloc( 1, sizeof( struct mlt_consumer_s ) );
 
        // If no malloc'd and consumer init ok
        if ( this != NULL && mlt_consumer_init( this, NULL, profile ) == 0 )