diff options
Diffstat (limited to 'libstdc++/std')
-rw-r--r-- | libstdc++/std/bastring.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libstdc++/std/bastring.h b/libstdc++/std/bastring.h index f188628..30fb669 100644 --- a/libstdc++/std/bastring.h +++ b/libstdc++/std/bastring.h @@ -298,7 +298,8 @@ private: public: const charT* c_str () const - { if (length () == 0) return ""; terminate (); return data (); } + { if (length () == 0) return traits::empty(); + terminate (); return data (); } void resize (size_type n, charT c); void resize (size_type n) { resize (n, eos ()); } |