From 6235a7d6d51420c25fb9ef23aea6bf4d8ce1ecfc Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Wed, 27 Feb 2002 04:38:32 +0000 Subject: [PATCH] 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 --- files.c | 2 +- global.c | 4 +++- search.c | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/files.c b/files.c index 716d8561..880046c4 100644 --- a/files.c +++ b/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 i = 0; - char *formatstr; + char *formatstr = NULL; #ifdef NANO_EXTRA static int did_cred = 0; diff --git a/global.c b/global.c index b1be6f83..048400aa 100644 --- a/global.c +++ b/global.c @@ -260,11 +260,13 @@ void shortcut_init(int unjustify) "", *nano_backspace_msg = "", *nano_tab_msg = "", *nano_enter_msg = "", *nano_cancel_msg = "", *nano_unjustify_msg = "", *nano_append_msg = - "", *nano_dos_msg = "", *nano_mac_msg = ""; + ""; #ifndef NANO_SMALL char *nano_tofiles_msg = "", *nano_gotodir_msg = "", *nano_case_msg = "", *nano_reverse_msg = ""; + char *nano_dos_msg = "", *nano_mac_msg = ""; + #ifdef HAVE_REGEX_H char *nano_regexp_msg = "", *nano_bracket_msg = ""; #endif diff --git a/search.c b/search.c index 2cc8b579..6d3064a9 100644 --- a/search.c +++ b/search.c @@ -246,7 +246,7 @@ filestruct *findnextstr(int quiet, int bracket_mode, filestruct * begin, int beg { filestruct *fileptr; char *searchstr, *rev_start = NULL, *found = NULL; - int current_x_find; + int current_x_find = 0; fileptr = current; past_editbuff = 0; -- 2.39.5