Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/fsck_lfs dev_bsize wasn't initialized. The actual value...
details: https://anonhg.NetBSD.org/src/rev/9b623ae5592c
branches: trunk
changeset: 752272:9b623ae5592c
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sun Feb 21 16:24:21 2010 +0000
description:
dev_bsize wasn't initialized. The actual value doesn't matter since
the same value is used to compute byte offsets into the special file
but a value of zero causes a division by zero.
diffstat:
sbin/fsck_lfs/lfs.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 14c8baf9b4f6 -r 9b623ae5592c sbin/fsck_lfs/lfs.c
--- a/sbin/fsck_lfs/lfs.c Sun Feb 21 14:26:33 2010 +0000
+++ b/sbin/fsck_lfs/lfs.c Sun Feb 21 16:24:21 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs.c,v 1.32 2010/02/16 23:20:30 mlelstv Exp $ */
+/* $NetBSD: lfs.c,v 1.33 2010/02/21 16:24:21 mlelstv Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -102,7 +102,7 @@
extern struct uvnodelst getvnodelist[VNODE_HASH_MAX];
extern int nvnodes;
-long dev_bsize;
+long dev_bsize = DEV_BSIZE;
static int
lfs_fragextend(struct uvnode *, int, int, daddr_t, struct ubuf **);
Home |
Main Index |
Thread Index |
Old Index