Skip to content

Commit

Permalink
OpenZFS 6872 - zfs libraries should not allow uninitialized variables
Browse files Browse the repository at this point in the history
Porting notes:
- Many changes were already made in ZoL (for ex. in d4ed667).

Authored by: Paul Dagnelie <[email protected]>
Reviewed by: Dan Kimmel <[email protected]>
Reviewed by: George Wilson <[email protected]>
Reviewed by: Prakash Surya <[email protected]>
Reviewed by: Yuri Pankov <[email protected]>
Approved by: Robert Mustacchi <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Ported-by: George Melikov <[email protected]>

OpenZFS-issue: https://www.illumos.org/issues/6872
OpenZFS-commit: openzfs/openzfs@f83b46b
Closes openzfs#5640
  • Loading branch information
gmelikov authored and wli5 committed Feb 27, 2017
1 parent 16031ae commit 333ec90
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/zpool/zpool_vdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

/*
* Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013 by Delphix. All rights reserved.
* Copyright (c) 2013, 2015 by Delphix. All rights reserved.
* Copyright (c) 2016 Intel Corporation.
* Copyright 2016 Igor Kozhukhov <[email protected]>.
*/
Expand Down Expand Up @@ -787,7 +787,6 @@ get_replication(nvlist_t *nvroot, boolean_t fatal)
verify(nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN,
&top, &toplevels) == 0);

lastrep.zprl_type = NULL;
for (t = 0; t < toplevels; t++) {
uint64_t is_log = B_FALSE;

Expand Down

0 comments on commit 333ec90

Please sign in to comment.