summaryrefslogtreecommitdiff
path: root/src/string.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/string.hh')
-rw-r--r--src/string.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.hh b/src/string.hh
index e69be344..56771c65 100644
--- a/src/string.hh
+++ b/src/string.hh
@@ -204,7 +204,7 @@ public:
private:
void release();
- void set_empty() { s.size = 1; }
+ void set_empty() { s.size = 1; s.string[0] = 0; }
void set_short(const char* data, size_t size);
};