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 Brian Behlendorf
parent 09453dea6a
commit aa822e4d9c
1 changed files with 1 additions and 1 deletions

View File

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