From cabd4a69c4127de2ce491aa84cfe46eec9a4c105 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Thu, 12 Mar 2009 10:30:41 -0700 Subject: Resolve remaining uninitialized variables Most of these fixes appear to be harmless and should never occur. However, there were a few cases in this patch which do concern me, I doubt we're seeing them but they look possible... mainly in the user tools. --- module/zfs/arc.c | 2 +- module/zfs/dmu.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'module') diff --git a/module/zfs/arc.c b/module/zfs/arc.c index 444ca863d..c46a5aedd 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -2604,7 +2604,7 @@ top: uint64_t size = BP_GET_LSIZE(bp); arc_callback_t *acb; vdev_t *vd = NULL; - daddr_t addr; + daddr_t addr = -1; boolean_t devw = B_FALSE; if (hdr == NULL) { diff --git a/module/zfs/dmu.c b/module/zfs/dmu.c index b6205bd50..1f4928437 100644 --- a/module/zfs/dmu.c +++ b/module/zfs/dmu.c @@ -189,7 +189,7 @@ dmu_buf_hold_array_by_dnode(dnode_t *dn, uint64_t offset, uint32_t flags; int err; zio_t *zio; - hrtime_t start; + hrtime_t start = 0; ASSERT(length <= DMU_MAX_ACCESS); -- cgit v1.2.3