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, ...@@ -360,7 +360,7 @@ mh_format (mh_format_t *fmt, message_t msg, size_t msgno,
360 print_string (&mach, strobj_ptr (&mach.reg_str), fmtwidth); 360 print_string (&mach, strobj_ptr (&mach.reg_str), fmtwidth);
361 reset_fmt_defaults (&mach); 361 reset_fmt_defaults (&mach);
362 } 362 }
363 else 363 else if (mach.reg_str.ptr)
364 { 364 {
365 print_string (&mach, 365 print_string (&mach,
366 strobj_ptr (&mach.reg_str), 366 strobj_ptr (&mach.reg_str),
......