diff options
author | lloyd <[email protected]> | 2011-12-28 18:13:40 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2011-12-28 18:13:40 +0000 |
commit | 965275b1d8457a9829a474821c2623a045213e53 (patch) | |
tree | e591297be4192bc6abac610a6484711a423b57e6 /src/utils/assert.cpp | |
parent | f501568f586735f06afd1822dcb7ed9ec4bc129d (diff) |
Add non-null assertion, don't print msg if empty string
Diffstat (limited to 'src/utils/assert.cpp')
-rw-r--r-- | src/utils/assert.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/assert.cpp b/src/utils/assert.cpp index 29af831d8..3747912d6 100644 --- a/src/utils/assert.cpp +++ b/src/utils/assert.cpp @@ -21,7 +21,7 @@ void assertion_failure(const char* expr_str, format << "Assertion " << expr_str << " failed "; - if(msg) + if(msg && msg[0] != 0) format << "(" << msg << ") "; if(func) |