Fix zdb "Memory fault" found on FreeBSD ZTS

Reason: nvlist_free() tries to free sth. which isn't allocted
Solution: init this variable with NULL

Signed-off-by: Tino Reichardt <milky-zfs@mcmilk.de>
Closes #16311
This commit is contained in:
Tino Reichardt 2024-07-09 10:32:58 +02:00
parent f72e081fbf
commit 596e83fca1
1 changed files with 1 additions and 1 deletions

View File

@ -9186,7 +9186,7 @@ main(int argc, char **argv)
char *pname = strdup(target);
const char *value;
nvlist_t *pnvl = NULL;
nvlist_t *vnvl;
nvlist_t *vnvl = NULL;
if (strpbrk(pname, "/@") != NULL)
*strpbrk(pname, "/@") = '\0';