]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(read_line) [lint]: Initialize CHARS to avoid spurious
authorJim Meyering <jim@meyering.net>
Tue, 8 Aug 1995 04:58:23 +0000 (04:58 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 8 Aug 1995 04:58:23 +0000 (04:58 +0000)
compiler warning.  From Ulrich Drepper.

src/pr.c

index 080e98b32a055d19352507696710400528d2f4b1..a438257884be04f891eafb989f7d20668f98ca5a 100644 (file)
--- a/src/pr.c
+++ b/src/pr.c
@@ -1633,6 +1633,10 @@ read_line (p)
   register int c, chars;
   int last_input_position;
 
+#ifdef lint  /* Suppress `used before initialized' warning.  */
+  chars = 0;
+#endif
+
   c = getc (p->fp);
 
   last_input_position = input_position;