From e80cfa4631451f0bc90026aaabfd7aade587d943 Mon Sep 17 00:00:00 2001 From: Xin LI Date: Mon, 10 Jan 2005 10:44:56 +0000 Subject: [PATCH] Initialize "he" in DoFile, so savecore(8) is WARNS=6 clean. Bump WARNS accordingly. --- sbin/savecore/Makefile | 2 +- sbin/savecore/savecore.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/savecore/Makefile b/sbin/savecore/Makefile index 6d7b5e0362d1..525f281b598c 100644 --- a/sbin/savecore/Makefile +++ b/sbin/savecore/Makefile @@ -1,7 +1,7 @@ # $FreeBSD$ PROG= savecore -WARNS?= 4 +WARNS?= 6 DPADD= ${LIBZ} LDADD= -lz MAN= savecore.8 diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c index 8d1e95a52494..5bb76e9cb7a0 100644 --- a/sbin/savecore/savecore.c +++ b/sbin/savecore/savecore.c @@ -213,7 +213,7 @@ DoFile(char *savedir, const char *device) off_t mediasize, dumpsize, firsthd, lasthd, dmpcnt; FILE *info, *fp; int fd, fdinfo, error, wl; - int nr, nw, hs, he; + int nr, nw, hs, he = 0; int bounds; u_int sectorsize; mode_t oumask;