Commit b8412529 authored by Niels Möller's avatar Niels Möller

(werror_vformat): Don't crash if %a gets a zero

argument. FIX copied from head branch.

Rev: src/werror.c:1.51.2.1
parent 7efa58fe
......@@ -404,9 +404,11 @@ werror_vformat(const char *f, va_list args)
{
int atom = va_arg(args, int);
assert(atom);
werror_write(get_atom_length(atom), get_atom_name(atom));
if (atom)
werror_write(get_atom_length(atom), get_atom_name(atom));
else
werror_write(9, "<unknown>");
break;
break;
}
......
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