Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimangi Saraogi <himangi774@gmail.com>2015-03-31 10:23:25 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-03-31 13:38:02 +0300
commit919d13d2383bd7318b80ed0c5b723323a79a8996 (patch)
treed9b11d7a997e2c7bc2a7a2366954b91f33a76989 /libavformat/http.c
parent8b152c355f6c52ddf5b5b1c6a90bcfb8468fe8d3 (diff)
avformat/http: Fix null check on allocated value
probably fixes CID 1292299 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/http.c')
-rw-r--r--libavformat/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/http.c b/libavformat/http.c
index da3c9bec1d..45533e4dbd 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -495,7 +495,7 @@ static int cookie_string(AVDictionary *dict, char **cookies)
e = NULL;
if (*cookies) av_free(*cookies);
*cookies = av_malloc(len);
- if (!cookies) return AVERROR(ENOMEM);
+ if (!*cookies) return AVERROR(ENOMEM);
*cookies[0] = '\0';
// write out the cookies