Commit 8b877337 authored by diego's avatar diego

Check the allocated pointer instead of the given pointer as intended

in vhook/ppm.c:Configure.
patch by Erik Hovland, erik hovland org


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14321 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b81bccee
......@@ -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 ] );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment