summaryrefslogtreecommitdiffstats
path: root/RichString.h
diff options
context:
space:
mode:
Diffstat (limited to 'RichString.h')
-rw-r--r--RichString.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/RichString.h b/RichString.h
index 1320c938..48c1e749 100644
--- a/RichString.h
+++ b/RichString.h
@@ -15,7 +15,7 @@ in the source distribution for its full text.
#define RichString_size(this) ((this)->chlen)
#define RichString_sizeVal(this) ((this).chlen)
-#define RichString_begin(this) RichString (this); memset(&(this), 0, sizeof(RichString)); (this).chptr = (this).chstr;
+#define RichString_begin(this) RichString (this); RichString_beginAllocated(this);
#define RichString_beginAllocated(this) memset(&(this), 0, sizeof(RichString)); (this).chptr = (this).chstr;
#define RichString_end(this) RichString_prune(&(this));