nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 6235a7d6d51420c25fb9ef23aea6bf4d8ce1ecfc
parent 2d698b713218b680a7714e4884f527a3ebb0a676
Author: Chris Allegretta <chrisa@asty.org>
Date:   Wed, 27 Feb 2002 04:38:32 +0000

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

Diffstat:
Mfiles.c | 2+-
Mglobal.c | 4+++-
Msearch.c | 2+-
3 files changed, 5 insertions(+), 3 deletions(-)

diff --git 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 @@ -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 @@ -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;