diff options
author | Brian Behlendorf <[email protected]> | 2009-03-12 10:30:41 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2009-03-12 10:30:41 -0700 |
commit | cabd4a69c4127de2ce491aa84cfe46eec9a4c105 (patch) | |
tree | 39dcf4d4f38931ed7f47ade22b1fe6fa7d33b2db /module | |
parent | fbb28430867a3682016b3146effb0c4f54475a64 (diff) |
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.
Diffstat (limited to 'module')
-rw-r--r-- | module/zfs/arc.c | 2 | ||||
-rw-r--r-- | module/zfs/dmu.c | 2 |
2 files changed, 2 insertions, 2 deletions
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); |