diff --git a/src/bin/termiointernals.c b/src/bin/termiointernals.c index d12f9786..c59cf092 100644 --- a/src/bin/termiointernals.c +++ b/src/bin/termiointernals.c @@ -250,6 +250,7 @@ _codepoint_buf_append(struct Codepoints_Buf *buf, return -1; } buf->codepoints = codepoints; + codepoints = NULL; } buf->codepoints[buf->len++] = u; return 0;