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
This commit is contained in:
Erik Hovland 2008-07-21 05:46:56 +00:00 committed by Diego Biurrun
parent bbc35f515f
commit 582b354933

View File

@ -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 ] );