From bf6438671728b67a25b5984c47510d8c0b91b2d0 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 24 May 2016 10:23:02 +0200 Subject: [PATCH] tweaks: rename a variable, for aptness --- src/files.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/files.c b/src/files.c index c50a4fbc..c76ac90c 100644 --- a/src/files.c +++ b/src/files.c @@ -1651,16 +1651,17 @@ bool check_operating_dir(const char *currpath, bool allow_tabcomp) * messed up and I'm blanket allowing insecure file writing operations'. */ int prompt_failed_backupwrite(const char *filename) { - static int i; + static int response; static char *prevfile = NULL; /* What was the last file we were * passed so we don't keep asking * this? Though maybe we should... */ if (prevfile == NULL || strcmp(filename, prevfile)) { - i = do_yesno_prompt(FALSE, - _("Failed to write backup file, continue saving? (Say N if unsure) ")); + response = do_yesno_prompt(FALSE, _("Failed to write backup file; " + "continue saving? (Say N if unsure.) ")); prevfile = mallocstrcpy(prevfile, filename); } - return i; + + return response; } void init_backup_dir(void)