mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/http: Fix null check on allocated value
probably fixes CID 1292299 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
8b152c355f
commit
919d13d238
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue