]> git.wh0rd.org Git - nano.git/commitdiff
main(): Initialized kbinput to get around stupid compiler warning.
authorChris Allegretta <chrisa@asty.org>
Mon, 15 Jan 2001 20:26:38 +0000 (20:26 +0000)
committerChris Allegretta <chrisa@asty.org>
Mon, 15 Jan 2001 20:26:38 +0000 (20:26 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@481 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
nano.c

index 31a363e84625785d237052e60322d774b9ae2bdd..0c85e1a115591d4a6e68de1446e469cc88162a64 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -37,6 +37,7 @@ General
   main()
        - Alternate speller option no longer valid if DISABLE_SPELLER is
          active. (Rocco)
+       - Initialized kbinput to get around stupid compiler warning.
   nano_small_msg()
        - This function has been removed.  All references now call
          nano_disabled_msg. (Rocco)
diff --git a/nano.c b/nano.c
index f1add813d03fa8ccd25a1248b93dfb769b52473e..be282806a1d932ec565c84503c9155c4527f612c 100644 (file)
--- a/nano.c
+++ b/nano.c
@@ -1751,7 +1751,7 @@ int do_justify(void)
     return 1;
 #else
     int slen = 0;              /* length of combined lines on one line. */
-    int initial_y, kbinput;
+    int initial_y, kbinput = 0;
     filestruct *initial = NULL, *tmpjust = NULL, *cutbak, *tmptop, *tmpbot;
 
     if (empty_line(current->data)) {