Commit 36fe5b5f 36fe5b5fa369d0e42d456a02e9852618f70978ba by Sergey Poznyakoff

(mh_format): Bugfix (NULL pointer dereference).

1 parent 83764b96
......@@ -360,7 +360,7 @@ mh_format (mh_format_t *fmt, message_t msg, size_t msgno,
print_string (&mach, strobj_ptr (&mach.reg_str), fmtwidth);
reset_fmt_defaults (&mach);
}
else
else if (mach.reg_str.ptr)
{
print_string (&mach,
strobj_ptr (&mach.reg_str),
......