Commit fc9935aa authored by Rémi Duraffort's avatar Rémi Duraffort

httplive: remove dummy calloc (a call to strndup follows).

parent 9b403140
......@@ -1032,10 +1032,6 @@ static char *AccessReadLine(access_t *p_access, uint8_t *psz_tmp, size_t i_len)
p++;
}
/* EOL */
line = calloc(1, p - begin + 1);
if (line == NULL)
return NULL;
/* copy line excluding \n */
line = strndup(begin, p - begin);
......
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