From: Erik Hovland Date: Mon, 21 Jul 2008 05:46:56 +0000 (+0000) Subject: Check the allocated pointer instead of the given pointer as intended X-Git-Tag: v0.5~3581 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=582b3549337931a386316b58a80bc64be72e6613;p=platform%2Fupstream%2Flibav.git Check the allocated pointer instead of the given pointer as intended in vhook/ppm.c:Configure. patch by Erik Hovland, erik hovland org Originally committed as revision 14321 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/vhook/ppm.c b/vhook/ppm.c index 6ebfe47..d9986c8 100644 --- a/vhook/ppm.c +++ b/vhook/ppm.c @@ -211,7 +211,7 @@ int Configure(void **ctxp, int argc, char *argv[]) if ( argc > 1 ) { *ctxp = av_mallocz(sizeof(ContextInfo)); - if ( ctxp != NULL && argc > 1 ) + if ( *ctxp != NULL && argc > 1 ) { ContextInfo *info = (ContextInfo *)*ctxp; info->rw = rwpipe_open( argc - 1, &argv[ 1 ] );