From e50964236bd45bf5f8103eff5fbff1c412880365 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Wed, 26 Jun 2013 16:19:54 -0700 Subject: Should really use variant and the new strings, but that's too hard --- src/common/dumb_ptr.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common') 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 -- cgit v1.2.3-60-g2f50