systemc: Make the report handler handle null messages.
authorGabe Black <gabeblack@google.com>
Thu, 23 Aug 2018 02:26:38 +0000 (19:26 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 25 Sep 2018 23:57:24 +0000 (23:57 +0000)
commit3d33eecfe8e38acb5fa6ac26cc2b7b371bdcda49
tree1f01ca74b155ea8c5106eac136e80a1d3070dfb0
parentf17f15e57fa16c2ce7eb4c951165b4978d686f87
systemc: Make the report handler handle null messages.

It was checking the first character of the message for a null byte, but
not whether the message string pointer itself was null.

Change-Id: Iddef1e22c35b55c8c898670576ab416dd1023d7c
Reviewed-on: https://gem5-review.googlesource.com/12252
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/systemc/utils/sc_report_handler.cc