From 90d4762740b68215d193176c565d45c981fe87d6 Mon Sep 17 00:00:00 2001 From: he Date: Tue, 7 Jun 2005 09:51:34 +0000 Subject: [PATCH] Initialize a local variable to appease -Wuninitialized. Marked with XXXGCC for pmppc (found while compiling for it). Reviewed by lukem. --- usr.bin/sort/files.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/usr.bin/sort/files.c b/usr.bin/sort/files.c index deab2c66ce54..3aa8640d3266 100644 --- a/usr.bin/sort/files.c +++ b/usr.bin/sort/files.c @@ -1,4 +1,4 @@ -/* $NetBSD: files.c,v 1.23 2004/02/15 11:52:12 jdolecek Exp $ */ +/* $NetBSD: files.c,v 1.24 2005/06/07 09:51:34 he Exp $ */ /*- * Copyright (c) 2000-2003 The NetBSD Foundation, Inc. @@ -72,7 +72,7 @@ #include "fsort.h" #ifndef lint -__RCSID("$NetBSD: files.c,v 1.23 2004/02/15 11:52:12 jdolecek Exp $"); +__RCSID("$NetBSD: files.c,v 1.24 2005/06/07 09:51:34 he Exp $"); __SCCSID("@(#)files.c 8.1 (Berkeley) 6/6/93"); #endif /* not lint */ @@ -172,6 +172,8 @@ makeline(flno, top, filelist, nfiles, recbuf, bufend, dummy2) static FILE *fp = 0; int c; + c = 0; /* XXXGCC -Wuninitialized [pmppc] */ + pos = (char *) recbuf->data; if (overflow) { /*