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
pull/126/head
Erik Hovland 17 years ago committed by Diego Biurrun
parent bbc35f515f
commit 582b354933
  1. 2
      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 ] );

Loading…
Cancel
Save