From: Brian Behlendorf Date: Fri, 20 Nov 2009 17:59:58 +0000 (-0800) Subject: Prevent gcc uninit compiler warning in zfs_range_unlock_reader(). X-Git-Tag: zfs-0.4.7~14^2^2^2^2^2^2^2^2^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3191b962f6d7a540c09bb0856c7797331616b7fe;p=zfs Prevent gcc uninit compiler warning in zfs_range_unlock_reader(). --- diff --git a/module/zfs/zfs_rlock.c b/module/zfs/zfs_rlock.c index 4de8d8a2d..1e4988d7f 100644 --- a/module/zfs/zfs_rlock.c +++ b/module/zfs/zfs_rlock.c @@ -460,7 +460,7 @@ static void zfs_range_unlock_reader(znode_t *zp, rl_t *remove) { avl_tree_t *tree = &zp->z_range_avl; - rl_t *rl, *next; + rl_t *rl, *next = NULL; uint64_t len; /*