Initialize metalbn in ufs_getlbns to appease -Wuninitialized.

Marked with XXXGCC for dreamcast (found while compiling for it).

Reviewed by lukem.
This commit is contained in:
he 2005-06-07 09:08:07 +00:00
parent 0a5aea28f2
commit e82dc5dc94
1 changed files with 3 additions and 1 deletions

View File

@ -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. * Copyright (c) 2003 The NetBSD Foundation, Inc.
* All rights reserved. * 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 i, numlevels, off;
int lognindir, indir; int lognindir, indir;
metalbn = 0; /* XXXGCC -Wuninitialized [dreamcast] */
if (nump) if (nump)
*nump = 0; *nump = 0;
numlevels = 0; numlevels = 0;