ztest: Do not print garbage if message is NULL

Change-Id: If79f4b92b2c494bf5fd44cb1855bba61029f7ac7
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2016-11-05 11:38:27 -04:00 committed by Anas Nashif
parent f528c09276
commit 68f087cee9

View file

@ -87,7 +87,7 @@ static inline void _assert(int cond, const char *msg, const char *default_msg,
*/
#define assert(cond, msg, default_msg) \
_assert(cond, msg, msg ? ("(" default_msg ")") : (default_msg), \
_assert(cond, msg ? msg : "", msg ? ("(" default_msg ")") : (default_msg), \
__FILE__, __LINE__, __func__)
/**