Fixed API nonnull warning.
This commit is contained in:
parent
83f6b24b16
commit
9e5be6f7e8
@ -330,9 +330,11 @@ void http_request_free(HttpRequest* http_request)
|
||||
|
||||
BOOL http_response_parse_header_status_line(HttpResponse* http_response, char* status_line)
|
||||
{
|
||||
char* separator;
|
||||
char* separator = NULL;
|
||||
char* status_code;
|
||||
char* reason_phrase;
|
||||
|
||||
if (status_line)
|
||||
separator = strchr(status_line, ' ');
|
||||
|
||||
if (!separator)
|
||||
@ -433,7 +435,10 @@ BOOL http_response_parse_header(HttpResponse* http_response)
|
||||
* | |
|
||||
* colon_pos value
|
||||
*/
|
||||
if (line)
|
||||
colon_pos = strchr(line, ':');
|
||||
else
|
||||
colon_pos = NULL;
|
||||
|
||||
if ((colon_pos == NULL) || (colon_pos == line))
|
||||
return FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user