From 243d1757d798a0cd43f51eb1db75cc1e81c65732 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 4 Jul 2010 04:26:55 +0200 Subject: remove some dead assignments, add a TODO comment Signed-off-by: Denys Vlasenko --- editors/vi.c | 1 - 1 file changed, 1 deletion(-) (limited to 'editors/vi.c') diff --git a/editors/vi.c b/editors/vi.c index 9b050e115..0f412c362 100644 --- a/editors/vi.c +++ b/editors/vi.c @@ -2385,7 +2385,6 @@ static int file_write(char *fn, char *first, char *last) status_line_bold("No current filename"); return -2; } - charcnt = 0; /* By popular request we do not open file with O_TRUNC, * but instead ftruncate() it _after_ successful write. * Might reduce amount of data lost on power fail etc. -- cgit v1.2.3