aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmeer Hamza <[email protected]>2024-06-07 05:01:26 +0500
committerGitHub <[email protected]>2024-06-06 17:01:26 -0700
commitb558f0a9d65c3bdb8310504184a82e9802551168 (patch)
tree3d98854c01c42044d8ae825214837d74a5fe8dbc
parent23a489a41167890cdd227366a5f950170df8cc9b (diff)
zdb: fix FreeBSD build failure
This fixes FreeBSD build failure with clang-18 after 23a489a got merged. Reviewed-by: Alexander Motin <[email protected]> Reviewed-by: Rob Norris <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ameer Hamza <[email protected]> Closes #16252
-rw-r--r--cmd/zdb/zdb.c2
1 files changed, 1 insertions, 1 deletions
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)