From b558f0a9d65c3bdb8310504184a82e9802551168 Mon Sep 17 00:00:00 2001 From: Ameer Hamza Date: Fri, 7 Jun 2024 05:01:26 +0500 Subject: [PATCH] zdb: fix FreeBSD build failure This fixes FreeBSD build failure with clang-18 after 23a489a got merged. Reviewed-by: Alexander Motin Reviewed-by: Rob Norris Reviewed-by: Brian Behlendorf Signed-off-by: Ameer Hamza Closes #16252 --- cmd/zdb/zdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/zdb/zdb.c b/cmd/zdb/zdb.c index 2a3d58d77..3a7ef1161 100644 --- a/cmd/zdb/zdb.c +++ b/cmd/zdb/zdb.c @@ -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)