diff options
author | Benny Baumann <BenBE@geshi.org> | 2020-11-02 21:30:47 +0100 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2020-11-02 22:15:01 +0100 |
commit | 1c060a9d6bde6109b5c2d003a9c275b419dd2d62 (patch) | |
tree | fd0ff876656280e249c03a76495c39f4fcaf0508 /RichString.h | |
parent | 0d64ca92627a42f78dc980ec53081eeadd49b262 (diff) |
Avoid RichString_beginAllocated being ammendable
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 5bcda602..fdf6ba35 100644 --- a/RichString.h +++ b/RichString.h @@ -16,7 +16,7 @@ in the source distribution for its full text. #define RichString_sizeVal(this) ((this).chlen) #define RichString_begin(this) RichString (this); RichString_beginAllocated(this) -#define RichString_beginAllocated(this) memset(&(this), 0, sizeof(RichString)); (this).chptr = (this).chstr +#define RichString_beginAllocated(this) do { memset(&(this), 0, sizeof(RichString)); (this).chptr = (this).chstr; } while(0) #define RichString_end(this) RichString_prune(&(this)) #ifdef HAVE_LIBNCURSESW |