diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2013-06-26 16:19:54 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-06-26 16:19:54 -0700 |
commit | e50964236bd45bf5f8103eff5fbff1c412880365 (patch) | |
tree | 57b5a7ab51e69669b993acec821c5aff79f3d175 /src/common | |
parent | 496326afb9e148971323e562d967b909bbbc3309 (diff) | |
download | tmwa-e50964236bd45bf5f8103eff5fbff1c412880365.tar.gz tmwa-e50964236bd45bf5f8103eff5fbff1c412880365.tar.bz2 tmwa-e50964236bd45bf5f8103eff5fbff1c412880365.tar.xz tmwa-e50964236bd45bf5f8103eff5fbff1c412880365.zip |
Should really use variant and the new strings, but that's too hard
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 |