From e82dc5dc94c96edf979c6364c523834c4dfbd100 Mon Sep 17 00:00:00 2001 From: he Date: Tue, 7 Jun 2005 09:08:07 +0000 Subject: [PATCH] Initialize metalbn in ufs_getlbns to appease -Wuninitialized. Marked with XXXGCC for dreamcast (found while compiling for it). Reviewed by lukem. --- sbin/fsck_lfs/lfs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sbin/fsck_lfs/lfs.c b/sbin/fsck_lfs/lfs.c index 1bb479152d10..eeedafd5e10c 100644 --- a/sbin/fsck_lfs/lfs.c +++ b/sbin/fsck_lfs/lfs.c @@ -1,4 +1,4 @@ -/* $NetBSD: lfs.c,v 1.14 2005/06/02 01:02:21 lukem Exp $ */ +/* $NetBSD: lfs.c,v 1.15 2005/06/07 09:08:07 he Exp $ */ /*- * Copyright (c) 2003 The NetBSD Foundation, Inc. * All rights reserved. @@ -240,6 +240,8 @@ ufs_getlbns(struct lfs * fs, struct uvnode * vp, daddr_t bn, struct indir * ap, int i, numlevels, off; int lognindir, indir; + metalbn = 0; /* XXXGCC -Wuninitialized [dreamcast] */ + if (nump) *nump = 0; numlevels = 0;