Commit 76d61ec1 authored by Chris Allegretta's avatar Chris Allegretta
Browse files

2013-01-02 Mike Frysinger <vapier@gentoo.org>

        * src/search.c (search_init): Fix gcc complaints on certain versions




git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4559 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 2a76b434
Showing with 4 additions and 2 deletions
+4 -2
2013-01-02 Mike Frysinger <vapier@gentoo.org>
* src/files.c: (cwd_tab_completion): Remove unnecessary variables
* src/files.c (cwd_tab_completion): Remove unnecessary variables
* src/search.c (search_init): Fix gcc complaints on certain versions
2013-01-02 Eitan Adler <lists@eitanadler.com>
* configure.ac: Remove unnecessary checks
......
......@@ -138,7 +138,6 @@ int search_init(bool replacing, bool use_answer)
int i = 0;
char *buf;
sc *s;
void (*func)(void);
bool meta_key = FALSE, func_key = FALSE;
static char *backupstring = NULL;
/* The search string we'll be using. */
......@@ -220,6 +219,8 @@ int search_init(bool replacing, bool use_answer)
statusbar(_("Cancelled"));
return -1;
} else {
void (*func)(void);
for (s = sclist; s != NULL; s = s->next)
if ((s->menu & currmenu) && i == s->seq) {
func = s->scfunc;
......
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