summaryrefslogtreecommitdiffstats
path: root/module/nvpair
diff options
context:
space:
mode:
authorSteve Dougherty <[email protected]>2015-11-10 19:41:10 -0500
committerBrian Behlendorf <[email protected]>2017-08-30 12:04:27 -0700
commitde327eccbb063c2321a40e167ad5c5b54ce2c227 (patch)
treefdd083f8f8b7bc17e306029008ae783c6ee5c145 /module/nvpair
parentecaebdbcf693d9f08844e04dc97f6859b7c37c80 (diff)
OpenZFS 6447 - handful of nvpair cleanups
Authored by: Steve Dougherty <[email protected]> Reviewed by: Josef 'Jeff' Sipek <[email protected]> Reviewed by: Andy Stormont <[email protected]> Reviewed by: Garrett D'Amore <[email protected]> Approved by: Robert Mustacchi <[email protected]> Reviewed-by: Don Brady <[email protected]> Reviewed-by: George Melikov <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Ported-by: Giuseppe Di Natale <[email protected]> OpenZFS-issue: https://www.illumos.org/issues/6447 OpenZFS-commit: https://github.com/openzfs/openzfs/commit/759e89b Closes #6581
Diffstat (limited to 'module/nvpair')
-rw-r--r--module/nvpair/nvpair.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/module/nvpair/nvpair.c b/module/nvpair/nvpair.c
index 24ef61e93..c0155f729 100644
--- a/module/nvpair/nvpair.c
+++ b/module/nvpair/nvpair.c
@@ -1642,6 +1642,8 @@ nvlist_lookup_nvpair_ei_sep(nvlist_t *nvl, const char *name, const char sep,
if ((nvl == NULL) || (name == NULL))
return (EINVAL);
+ sepp = NULL;
+ idx = 0;
/* step through components of name */
for (np = name; np && *np; np = sepp) {
/* ensure unique names */