]> git.proxmox.com Git - mirror_zfs.git/commitdiff
zdb: fix FreeBSD build failure
authorAmeer Hamza <ahamza@ixsystems.com>
Fri, 7 Jun 2024 00:01:26 +0000 (05:01 +0500)
committerGitHub <noreply@github.com>
Fri, 7 Jun 2024 00:01:26 +0000 (17:01 -0700)
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

cmd/zdb/zdb.c

index 2a3d58d77e047800434ad52fbaea311642bafc14..3a7ef11612d90f342141d3bbec1facba6a5069e7 100644 (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)