]> git.sesse.net Git - mlt/commit
mlt_consumer_new(): handle return value from mlt_consumer_init()
authorMikko Rapeli <mikko.rapeli@iki.fi>
Tue, 24 Jul 2012 17:35:14 +0000 (19:35 +0200)
committerMikko Rapeli <mikko.rapeli@iki.fi>
Tue, 24 Jul 2012 17:39:49 +0000 (19:39 +0200)
commit73fe64f122c56701e2f37ed0dd0dbcdac27346e3
tree56eb1b07c85a48623e1f5b371756e64678d0994e
parent11c8eb2e98c7d32cad2430132a91008eb51f72cd
mlt_consumer_new(): handle return value from mlt_consumer_init()

If init() fails return NULL. Fixes Coverity CID 709325.

At conditional (1): "self != NULL" taking the true branch.
 339        if ( self != NULL )
CID 709325: Unchecked return value (CHECKED_RETURN)
Calling function "mlt_consumer_init" without checking return value (as is done elsewhere 10 out of 11 times).
No check of the return value of "mlt_consumer_init(self, NULL, profile)".
 340                mlt_consumer_init( self, NULL, profile );
src/framework/mlt_consumer.c