]> git.wh0rd.org Git - nano.git/commitdiff
Get rid of stupid uninitialized warnings and move nano_dos_msg and nano_mac_msg into...
authorChris Allegretta <chrisa@asty.org>
Wed, 27 Feb 2002 04:38:32 +0000 (04:38 +0000)
committerChris Allegretta <chrisa@asty.org>
Wed, 27 Feb 2002 04:38:32 +0000 (04:38 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1087 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

files.c
global.c
search.c

diff --git a/files.c b/files.c
index 716d85614441931d5111a7c31759494b0f8e9826..880046c46d09eca1d6fb4374f04214d659eff8c3 100644 (file)
--- 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;
index b1be6f83164fe757b5a402c7710f9c2414bbe164..048400aa16607485670c932af9212ee7c23fd0f9 100644 (file)
--- 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
index 2cc8b57978ec013588f7f2c0d40ba965ee8f208b..6d3064a9936884031ef0c335f9a8cad6978dbf9f 100644 (file)
--- 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;