Commit 6235a7d6 authored by Chris Allegretta's avatar Chris Allegretta
Browse files

Get rid of stupid uninitialized warnings and move nano_dos_msg and...

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-d3aeb78583b8
No related merge requests found
Showing with 5 additions and 3 deletions
+5 -3
...@@ -1380,7 +1380,7 @@ int write_file(char *name, int tmp, int append, int nonamechange) ...@@ -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;
......
...@@ -260,11 +260,13 @@ void shortcut_init(int unjustify) ...@@ -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
......
...@@ -246,7 +246,7 @@ filestruct *findnextstr(int quiet, int bracket_mode, filestruct * begin, int beg ...@@ -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;
......
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