diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/dumb_ptr.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/dumb_ptr.hpp b/src/common/dumb_ptr.hpp index ab98b57..d9000e9 100644 --- a/src/common/dumb_ptr.hpp +++ b/src/common/dumb_ptr.hpp @@ -234,7 +234,7 @@ struct dumb_string const char *c_str() const { - return &impl[0]; + return impl ? &impl[0] : ""; } std::string str() const |