diff options
author | Erik Hovland <erik@hovland.org> | 2008-07-21 05:46:56 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2008-07-21 05:46:56 +0000 |
commit | 582b3549337931a386316b58a80bc64be72e6613 (patch) | |
tree | 8c16997aef66f468ed4b93efc109b5e492873b8f /vhook | |
parent | bbc35f515f9f699067b6337003faebd02781acd3 (diff) | |
download | ffmpeg-582b3549337931a386316b58a80bc64be72e6613.tar.gz |
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
Diffstat (limited to 'vhook')
-rw-r--r-- | vhook/ppm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vhook/ppm.c b/vhook/ppm.c index 6ebfe47524..d9986c81fb 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 ] ); |