* src/http.c (resp_new): Fix code to avoid false positive by clang

This commit is contained in:
Tim Rühsen 2018-09-20 14:59:06 +02:00
parent 88a49c1e41
commit 0727b8f3a9

View File

@ -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;