Browse Source

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
tags/v0.5
Erik Hovland Diego Biurrun 17 years ago
parent
commit
582b354933
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      vhook/ppm.c

+ 1
- 1
vhook/ppm.c 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 ] );


Loading…
Cancel
Save