Commit 0a60f830 authored by Michael Niedermayer's avatar Michael Niedermayer

http: dont null check p, its unneeded

Fixes CID747740
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b11a8890
......@@ -357,7 +357,7 @@ static int process_line(URLContext *h, char *line, int line_count,
s->willclose = 1;
} else if (!av_strcasecmp (tag, "Server") && !av_strcasecmp (p, "AkamaiGHost")) {
s->is_akamai = 1;
} else if (!av_strcasecmp (tag, "Content-Type") && p) {
} else if (!av_strcasecmp (tag, "Content-Type")) {
av_free(s->mime_type); s->mime_type = av_strdup(p);
}
}
......
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