Commit 6dcc583c authored by Brendan Cully's avatar Brendan Cully

Handle missing : in write_one_header debug statement. Closes #3483

parent edb6e859
......@@ -1799,7 +1799,7 @@ static int write_one_header (FILE *fp, int pfxw, int max, int wraplen,
else
{
t = strchr (start, ':');
if (t > end)
if (!t || t > end)
{
dprint (1, (debugfile, "mwoh: warning: header not in "
"'key: value' format!\n"));
......
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