aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--buffer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/buffer.c b/buffer.c
index 1276cae..94c074e 100644
--- a/buffer.c
+++ b/buffer.c
@@ -167,7 +167,6 @@ const char *buffer_content0(Buffer *buf) {
char *buffer_move(Buffer *buf) {
char *data = buf->data;
- buffer_clear(buf);
- buf->data = NULL;
+ buffer_init(buf);
return data;
}