aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--text.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/text.c b/text.c
index 111a40e..e6edf90 100644
--- a/text.c
+++ b/text.c
@@ -976,7 +976,6 @@ static bool text_save_begin_inplace(TextSave *ctx) {
goto err;
block->data = data;
block->type = MMAP;
- newfd = -1;
}
/* overwrite the existing file content, if something goes wrong
* here we are screwed, TODO: make a backup before? */