summaryrefslogtreecommitdiffstats
path: root/RichString.h
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-10-28 18:00:50 +0100
committercgzones <cgzones@googlemail.com>2020-10-28 19:57:10 +0100
commit6375df49c9ceabc87066bd53eadf1ababb11c902 (patch)
treed3cd00e2e57ffa6fb27cde4bd8e6073309ba7980 /RichString.h
parent887dfde3082bcb1057a965d365206b2ed3d0263b (diff)
Simplify RichString_begin
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));

© 2014-2024 Faster IT GmbH | imprint | privacy policy