zdb: fix FreeBSD build failure

This fixes FreeBSD build failure with clang-18 after 23a489a got merged.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Rob Norris <rob.norris@klarasystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ameer Hamza <ahamza@ixsystems.com>
Closes #16252
This commit is contained in:
Ameer Hamza 2024-06-07 05:01:26 +05:00 committed by GitHub
parent 23a489a411
commit b558f0a9d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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