summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-08-08 04:58:46 +0000
committerJim Meyering <jim@meyering.net>1995-08-08 04:58:46 +0000
commitf03f8dcc44baa629e5af12d134d797a478dda6be (patch)
treee0a5e8121ac3a1cc68ae9e86137e8fb209dea516
parenta5656326f08b5108e1bdf87a67537436e07f238a (diff)
downloadcoreutils-f03f8dcc44baa629e5af12d134d797a478dda6be.tar.xz
(mergefps) [lint]: Initialize SAVEALLOC to avoid spurious
compiler warning. From Ulrich Drepper.
-rw-r--r--src/sort.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sort.c b/src/sort.c
index d46a18c8e..263a462ad 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -1047,6 +1047,10 @@ mergefps (fps, nfps, ofp)
output. */
register int i, j, t;
+#ifdef lint /* Suppress `used before initialized' warning. */
+ savealloc = 0;
+#endif
+
/* Allocate space for a saved line if necessary. */
if (unique)
{