Avoid RichString_beginAllocated being ammendable

This commit is contained in:
Benny Baumann 2020-11-02 21:30:47 +01:00
parent 0d64ca9262
commit 1c060a9d6b

View File

@ -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