From: David Lawrence Ramsey Date: Tue, 28 Sep 2004 16:03:03 +0000 (+0000) Subject: cosmetic fix X-Git-Tag: v1.3.5~172 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=670a56c2416343dba9d48681fea586e8e4635bc3;p=nano.git cosmetic fix git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1948 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/files.c b/src/files.c index e68449b7..e273fa1c 100644 --- a/src/files.c +++ b/src/files.c @@ -478,7 +478,7 @@ void do_insertfile(void) { int i; const char *msg; - char *inspath = mallocstrcpy(NULL, ""); + char *ans = mallocstrcpy(NULL, ""); /* The last answer the user typed on the statusbar. Saved for if * they do M-F or cancel the file browser. */ @@ -494,7 +494,7 @@ void do_insertfile(void) else #endif msg = N_("File to insert [from %s] "); - i = statusq(TRUE, insertfile_list, inspath, + i = statusq(TRUE, insertfile_list, ans, #ifndef NANO_SMALL NULL, #endif @@ -508,7 +508,7 @@ void do_insertfile(void) if (i != -1) { int old_current_x = current_x; - inspath = mallocstrcpy(inspath, answer); + ans = mallocstrcpy(ans, answer); #ifndef NANO_SMALL #ifdef ENABLE_MULTIBUFFER @@ -576,7 +576,7 @@ void do_insertfile(void) } else statusbar(_("Cancelled")); - free(inspath); + free(ans); } void do_insertfile_void(void)