From 1228b2c05b7c496750dcece627ceb25ecf0942f6 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@justemail.net>
Date: Mon, 23 May 2016 18:09:53 +0200
Subject: [PATCH] tweaks: rename a variable, to indicate what it contains

---
 src/files.c | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/src/files.c b/src/files.c
index 1128590b..c0cafd29 100644
--- a/src/files.c
+++ b/src/files.c
@@ -1172,19 +1172,17 @@ void do_insertfile(
 
 #ifndef DISABLE_BROWSER
 	    if (func == to_files_void) {
-		char *tmp = do_browse_from(answer);
+		char *chosen = do_browse_from(answer);
 
-		if (tmp == NULL)
+		if (chosen == NULL)
 		    continue;
 
 		/* We have a file now.  Indicate this. */
 		free(answer);
-		answer = tmp;
-
+		answer = chosen;
 		i = 0;
 	    }
 #endif
-
 	    /* If we don't have a file yet, go back to the statusbar prompt. */
 	    if (i != 0
 #ifndef DISABLE_MULTIBUFFER
@@ -2328,14 +2326,14 @@ int do_writeout(bool exiting)
 
 #ifndef DISABLE_BROWSER
 	    if (func == to_files_void) {
-		char *tmp = do_browse_from(answer);
+		char *chosen = do_browse_from(answer);
 
-		if (tmp == NULL)
+		if (chosen == NULL)
 		    continue;
 
 		/* We have a file now.  Indicate this. */
 		free(answer);
-		answer = tmp;
+		answer = chosen;
 	    } else
 #endif /* !DISABLE_BROWSER */
 #ifndef NANO_TINY
-- 
GitLab