]> git.wh0rd.org Git - nano.git/commitdiff
Get rid of annoying init error in read_file
authorChris Allegretta <chrisa@asty.org>
Sun, 21 Jul 2002 15:46:48 +0000 (15:46 +0000)
committerChris Allegretta <chrisa@asty.org>
Sun, 21 Jul 2002 15:46:48 +0000 (15:46 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1238 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

files.c

diff --git a/files.c b/files.c
index 6e65d811a52eaee15b093630e4e25f7ca409d974..cf4769760ff7b2eb2644f47b4d2177cbe1f53424 100644 (file)
--- a/files.c
+++ b/files.c
@@ -164,7 +164,7 @@ filestruct *read_line(char *buf, filestruct *prev, int *line1ins, int len)
 int read_file(FILE *f, const char *filename, int quiet)
 {
     int num_lines = 0, len = 0;
-    char input;                /* current input character */
+    char input = 0;            /* current input character */
     char *buf;
     long i = 0, bufx = 128;
     filestruct *fileptr = current, *tmp = NULL;