From 6375df49c9ceabc87066bd53eadf1ababb11c902 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Wed, 28 Oct 2020 18:00:50 +0100 Subject: Simplify RichString_begin --- RichString.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'RichString.h') 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)); -- cgit v1.2.3