Get rid of stupid uninitialized warnings and move nano_dos_msg and nano_mac_msg into NANO_SMALL check
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1087 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
2d698b7132
commit
6235a7d6d5
2
files.c
2
files.c
|
@ -1380,7 +1380,7 @@ int write_file(char *name, int tmp, int append, int nonamechange)
|
||||||
int do_writeout(char *path, int exiting, int append)
|
int do_writeout(char *path, int exiting, int append)
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
char *formatstr;
|
char *formatstr = NULL;
|
||||||
|
|
||||||
#ifdef NANO_EXTRA
|
#ifdef NANO_EXTRA
|
||||||
static int did_cred = 0;
|
static int did_cred = 0;
|
||||||
|
|
4
global.c
4
global.c
|
@ -260,11 +260,13 @@ void shortcut_init(int unjustify)
|
||||||
"", *nano_backspace_msg = "", *nano_tab_msg =
|
"", *nano_backspace_msg = "", *nano_tab_msg =
|
||||||
"", *nano_enter_msg = "", *nano_cancel_msg =
|
"", *nano_enter_msg = "", *nano_cancel_msg =
|
||||||
"", *nano_unjustify_msg = "", *nano_append_msg =
|
"", *nano_unjustify_msg = "", *nano_append_msg =
|
||||||
"", *nano_dos_msg = "", *nano_mac_msg = "";
|
"";
|
||||||
|
|
||||||
#ifndef NANO_SMALL
|
#ifndef NANO_SMALL
|
||||||
char *nano_tofiles_msg = "", *nano_gotodir_msg = "", *nano_case_msg =
|
char *nano_tofiles_msg = "", *nano_gotodir_msg = "", *nano_case_msg =
|
||||||
"", *nano_reverse_msg = "";
|
"", *nano_reverse_msg = "";
|
||||||
|
char *nano_dos_msg = "", *nano_mac_msg = "";
|
||||||
|
|
||||||
#ifdef HAVE_REGEX_H
|
#ifdef HAVE_REGEX_H
|
||||||
char *nano_regexp_msg = "", *nano_bracket_msg = "";
|
char *nano_regexp_msg = "", *nano_bracket_msg = "";
|
||||||
#endif
|
#endif
|
||||||
|
|
2
search.c
2
search.c
|
@ -246,7 +246,7 @@ filestruct *findnextstr(int quiet, int bracket_mode, filestruct * begin, int beg
|
||||||
{
|
{
|
||||||
filestruct *fileptr;
|
filestruct *fileptr;
|
||||||
char *searchstr, *rev_start = NULL, *found = NULL;
|
char *searchstr, *rev_start = NULL, *found = NULL;
|
||||||
int current_x_find;
|
int current_x_find = 0;
|
||||||
fileptr = current;
|
fileptr = current;
|
||||||
|
|
||||||
past_editbuff = 0;
|
past_editbuff = 0;
|
||||||
|
|
Loading…
Reference in New Issue