diff options
| author | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2014-09-18 22:34:52 +0000 |
|---|---|---|
| committer | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2014-09-18 22:34:52 +0000 |
| commit | d3c24fcffe1e1fab13dd9763580f96fac214e36d (patch) | |
| tree | b3145cc10bca2a7bf8cbeb917199eedd0236ac3b /lib | |
| parent | fb767c2ba2e28af728722278028e6171664ceb2d (diff) | |
Notes
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libnv/nvpair.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libnv/nvpair.c b/lib/libnv/nvpair.c index b4be331c2d760..8ff85388f8bb7 100644 --- a/lib/libnv/nvpair.c +++ b/lib/libnv/nvpair.c @@ -963,7 +963,8 @@ nvpair_createv_nvlist(const nvlist_t *value, const char *namefmt, namefmt, nameap); if (nvp == NULL) nvlist_destroy(nvl); - nvlist_set_parent(nvl, nvp); + else + nvlist_set_parent(nvl, nvp); return (nvp); } |
