diff options
| author | mrg <mrg@NetBSD.org> | 2020-09-07 01:35:25 +0000 |
|---|---|---|
| committer | mrg <mrg@NetBSD.org> | 2020-09-07 01:35:25 +0000 |
| commit | 57a73acc09520b63af2dae6e4d2e7136265cc2f3 (patch) | |
| tree | 99b0edba5e124870436e358ca77d23f844695824 /sys | |
| parent | 59b33cb57ca29bc61af3d8a4f334f37e754f0fbf (diff) | |
avoid an uninit warning with GCC 9.
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/fs/msdosfs/msdosfs_fat.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/fs/msdosfs/msdosfs_fat.c b/sys/fs/msdosfs/msdosfs_fat.c index c646127fd63..ee93b6bab2c 100644 --- a/sys/fs/msdosfs/msdosfs_fat.c +++ b/sys/fs/msdosfs/msdosfs_fat.c @@ -1,4 +1,4 @@ -/* $NetBSD: msdosfs_fat.c,v 1.34 2018/09/03 16:29:34 riastradh Exp $ */ +/* $NetBSD: msdosfs_fat.c,v 1.35 2020/09/07 01:35:25 mrg Exp $ */ /*- * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank. @@ -52,7 +52,7 @@ #endif #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: msdosfs_fat.c,v 1.34 2018/09/03 16:29:34 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: msdosfs_fat.c,v 1.35 2020/09/07 01:35:25 mrg Exp $"); /* * kernel include files. @@ -895,6 +895,7 @@ freeclusterchain(struct msdosfsmount *pmp, u_long cluster) u_long bn, bo, bsize, byteoffset; u_long readcn, lbn = -1; + bn = 0; /* XXXgcc */ while (cluster >= CLUST_FIRST && cluster <= pmp->pm_maxcluster) { byteoffset = FATOFS(pmp, cluster); fatblock(pmp, byteoffset, &bn, &bsize, &bo); |
