aboutsummaryrefslogtreecommitdiff
path: root/text.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2020-06-22 09:20:12 +0200
committerMarc André Tanner <mat@brain-dump.org>2020-06-22 09:20:12 +0200
commit1b4eb9853797ac928ed178ad3941662f00fe2658 (patch)
tree5c396ad2c71126b975a6a7141aab9c55dcb066b3 /text.c
parent843ba5b45c5d8751bd0fe049016c7d3ef3d250af (diff)
downloadvis-1b4eb9853797ac928ed178ad3941662f00fe2658.tar.gz
vis-1b4eb9853797ac928ed178ad3941662f00fe2658.tar.xz
text: remove dead store
Diffstat (limited to 'text.c')
-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? */