Commit 919d13d2 authored by Himangi Saraogi's avatar Himangi Saraogi Committed by Michael Niedermayer

avformat/http: Fix null check on allocated value

probably fixes CID 1292299
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 8b152c35
......@@ -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
......
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