Fix NULL pointer dereference in zdb

Clang's static analyzer complained that we dereference a NULL pointer in
dump_path() if we return 0 when there is an error.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14044
This commit is contained in:
Richard Yao 2022-10-14 22:45:13 -04:00 committed by Tony Hutter
parent 4351d18fb0
commit 5eaad8bdb5
1 changed files with 1 additions and 1 deletions

View File

@ -2995,7 +2995,7 @@ open_objset(const char *path, void *tag, objset_t **osp)
} }
sa_os = *osp; sa_os = *osp;
return (0); return (err);
} }
static void static void