mirror of
https://github.com/mirror/wget.git
synced 2025-03-05 23:30:35 +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');
|
char *end = strchr (hdr, '\n');
|
||||||
|
|
||||||
if (end)
|
if (!end)
|
||||||
hdr = end + 1;
|
{
|
||||||
else
|
hdr += strlen (hdr);
|
||||||
hdr += strlen (hdr);
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
hdr = end + 1;
|
||||||
|
|
||||||
if (*hdr != ' ' && *hdr != '\t')
|
if (*hdr != ' ' && *hdr != '\t')
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user