From 583b67bad2bce10940878be4f68fb8a9f8f2cd91 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 12 Jan 2016 11:16:39 +0000 Subject: [PATCH] Rename a variable, to match the save routine. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5549 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 1 + src/files.c | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index a9224993..a0f256a3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 2016-01-12 Benno Schulenberg * NEWS: Fix some typos and whitespace, and normalize the dates. + * src/files.c (load_poshistory): Rename a variable. GNU nano 2.5.1 - 2016.01.11 diff --git a/src/files.c b/src/files.c index de1c050a..b43fbea2 100644 --- a/src/files.c +++ b/src/files.c @@ -3200,17 +3200,17 @@ int check_poshistory(const char *file, ssize_t *line, ssize_t *column) /* Load the recorded file positions from ~/.nano/filepos_history. */ void load_poshistory(void) { - char *nanohist = poshistfilename(); + char *poshist = poshistfilename(); /* Assume do_rcfile() has reported a missing home directory. */ - if (nanohist != NULL) { - FILE *hist = fopen(nanohist, "rb"); + if (poshist != NULL) { + FILE *hist = fopen(poshist, "rb"); if (hist == NULL) { if (errno != ENOENT) { /* Don't save history when we quit. */ UNSET(POS_HISTORY); - history_error(N_("Error reading %s: %s"), nanohist, + history_error(N_("Error reading %s: %s"), poshist, strerror(errno)); } } else { @@ -3252,7 +3252,7 @@ void load_poshistory(void) fclose(hist); free(line); } - free(nanohist); + free(poshist); } } #endif /* !DISABLE_HISTORIES */ -- 2.39.5