Commit 60f198a7 authored by Martin Storsjö's avatar Martin Storsjö

Remove a redundant null pointer check

Originally committed as revision 22679 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 30af0779
...@@ -143,9 +143,6 @@ static void choose_qop(char *qop, int size) ...@@ -143,9 +143,6 @@ static void choose_qop(char *qop, int size)
void ff_http_auth_handle_header(HTTPAuthState *state, const char *key, void ff_http_auth_handle_header(HTTPAuthState *state, const char *key,
const char *value) const char *value)
{ {
if (!state)
return;
if (!strcmp(key, "WWW-Authenticate")) { if (!strcmp(key, "WWW-Authenticate")) {
const char *p; const char *p;
if (av_stristart(value, "Basic ", &p) && if (av_stristart(value, "Basic ", &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