Commit 1228b2c0 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: rename a variable, to indicate what it contains

No related merge requests found
Showing with 6 additions and 8 deletions
+6 -8
...@@ -1172,19 +1172,17 @@ void do_insertfile( ...@@ -1172,19 +1172,17 @@ void do_insertfile(
#ifndef DISABLE_BROWSER #ifndef DISABLE_BROWSER
if (func == to_files_void) { if (func == to_files_void) {
char *tmp = do_browse_from(answer); char *chosen = do_browse_from(answer);
if (tmp == NULL) if (chosen == NULL)
continue; continue;
/* We have a file now. Indicate this. */ /* We have a file now. Indicate this. */
free(answer); free(answer);
answer = tmp; answer = chosen;
i = 0; i = 0;
} }
#endif #endif
/* If we don't have a file yet, go back to the statusbar prompt. */ /* If we don't have a file yet, go back to the statusbar prompt. */
if (i != 0 if (i != 0
#ifndef DISABLE_MULTIBUFFER #ifndef DISABLE_MULTIBUFFER
...@@ -2328,14 +2326,14 @@ int do_writeout(bool exiting) ...@@ -2328,14 +2326,14 @@ int do_writeout(bool exiting)
#ifndef DISABLE_BROWSER #ifndef DISABLE_BROWSER
if (func == to_files_void) { if (func == to_files_void) {
char *tmp = do_browse_from(answer); char *chosen = do_browse_from(answer);
if (tmp == NULL) if (chosen == NULL)
continue; continue;
/* We have a file now. Indicate this. */ /* We have a file now. Indicate this. */
free(answer); free(answer);
answer = tmp; answer = chosen;
} else } else
#endif /* !DISABLE_BROWSER */ #endif /* !DISABLE_BROWSER */
#ifndef NANO_TINY #ifndef NANO_TINY
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment