]> git.wh0rd.org Git - nano.git/commitdiff
Removing an earlier attempt at making M-W work at startup.
authorBenno Schulenberg <bensberg@justemail.net>
Fri, 17 Jul 2015 21:06:46 +0000 (21:06 +0000)
committerBenno Schulenberg <bensberg@justemail.net>
Fri, 17 Jul 2015 21:06:46 +0000 (21:06 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5305 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
src/files.c

index 61fb69accb362d032345a51cacece29b8146535d..ffb2ad5669cde9d87ec5f6d180f4f1c410b802ee 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,10 @@
        a directory is specified.  This fixes Savannah bug #45383 reported
        by Mike Frysinger, and also Savannah bug #27839 (which is an echo
        from Debian bug #551717 reported by Paul Wise).
+       * src/files.c (load_history): Remove an earlier attempt to make M-W
+       work at startup.  It no longer worked because the assigned value gets
+       overwritten by a later initialization of 'last_search' to the empty
+       string.  Found through the use of valgrind.
 
 2015-07-17  Mike Frysinger  <vapier@gentoo.org>
        * src/browser.c (browser_refresh): Use the proper type (off_t) for
index 4c491fd1a1d80e34cfba16023322ecc9be59dc11..3c417b7f21f595386d46b29bf7edd09b9b325337 100644 (file)
@@ -3023,8 +3023,6 @@ void load_history(void)
 
            fclose(hist);
            free(line);
-           if (search_history->prev != NULL)
-               last_search = mallocstrcpy(NULL, search_history->prev->data);
        }
        free(nanohist);
        free(legacyhist);