summaryrefslogtreecommitdiff
path: root/src/systemc
diff options
context:
space:
mode:
Diffstat (limited to 'src/systemc')
-rw-r--r--src/systemc/utils/sc_report_handler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemc/utils/sc_report_handler.cc b/src/systemc/utils/sc_report_handler.cc
index 6b259342a..e08ad6624 100644
--- a/src/systemc/utils/sc_report_handler.cc
+++ b/src/systemc/utils/sc_report_handler.cc
@@ -413,7 +413,7 @@ sc_report_compose_message(const sc_report &report)
str << report.get_msg_type();
const char *msg = report.get_msg();
- if (msg[0])
+ if (msg && msg[0])
str << ": " << msg;
if (report.get_severity() > SC_INFO) {