From a48023553ec7a0133e0a7bed20e0271ceb1acfbd Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Wed, 2 Sep 2020 19:01:31 +0200 Subject: degesch: fix a pointer operation in the libedit layer --- degesch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/degesch.c b/degesch.c index d642cde..5afd49c 100644 --- a/degesch.c +++ b/degesch.c @@ -1016,7 +1016,8 @@ input_el__restore_buffer (struct input_el *self, struct input_el_buffer *buffer) el_winsertstr (self->editline, buffer->saved_line); el_cursor (self->editline, -(buffer->saved_len - buffer->saved_point)); - cstr_set (&buffer->saved_line, NULL); + free (buffer->saved_line); + buffer->saved_line = NULL; } } -- cgit v1.2.3-70-g09d2