diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-10-28 18:00:50 +0100 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-10-28 19:57:10 +0100 |
commit | 6375df49c9ceabc87066bd53eadf1ababb11c902 (patch) | |
tree | d3cd00e2e57ffa6fb27cde4bd8e6073309ba7980 /RichString.h | |
parent | 887dfde3082bcb1057a965d365206b2ed3d0263b (diff) |
Simplify RichString_begin
Diffstat (limited to 'RichString.h')
-rw-r--r-- | RichString.h | 2 |
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)); |