diff options
author | Brian Behlendorf <[email protected]> | 2010-08-26 09:58:04 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2010-08-31 08:38:43 -0700 |
commit | d4ed667343c3dac114642b9f6cb4f7baa3ff7334 (patch) | |
tree | 16b3f627625f83d0214446fb6f867e100f1a34c5 /cmd/zpool/zpool_vdev.c | |
parent | 1fde1e37208c2f56c72c70a06676676f04b65998 (diff) |
Fix gcc uninitialized variable warnings
Gcc -Wall warn: 'uninitialized variable'
Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'cmd/zpool/zpool_vdev.c')
-rw-r--r-- | cmd/zpool/zpool_vdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/zpool/zpool_vdev.c b/cmd/zpool/zpool_vdev.c index 53c2e60b7..0c224903d 100644 --- a/cmd/zpool/zpool_vdev.c +++ b/cmd/zpool/zpool_vdev.c @@ -548,7 +548,7 @@ get_replication(nvlist_t *nvroot, boolean_t fatal) uint_t c, children; nvlist_t *nv; char *type; - replication_level_t lastrep, rep, *ret; + replication_level_t lastrep = { 0 }, rep, *ret; boolean_t dontreport; ret = safe_malloc(sizeof (replication_level_t)); |