mirror of
https://github.com/mirror/wget.git
synced 2025-03-05 07:10:17 +08:00
* src/http.c (resp_new): Fix code to avoid false positive by clang
This commit is contained in:
parent
88a49c1e41
commit
0727b8f3a9
11
src/http.c
11
src/http.c
@ -648,10 +648,13 @@ resp_new (char *head)
|
||||
{
|
||||
char *end = strchr (hdr, '\n');
|
||||
|
||||
if (end)
|
||||
hdr = end + 1;
|
||||
else
|
||||
hdr += strlen (hdr);
|
||||
if (!end)
|
||||
{
|
||||
hdr += strlen (hdr);
|
||||
break;
|
||||
}
|
||||
|
||||
hdr = end + 1;
|
||||
|
||||
if (*hdr != ' ' && *hdr != '\t')
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user