diff --git a/lib/libzfs/libzfs_dataset.c b/lib/libzfs/libzfs_dataset.c index d34ab5aa1e..865295721c 100644 --- a/lib/libzfs/libzfs_dataset.c +++ b/lib/libzfs/libzfs_dataset.c @@ -2592,7 +2592,7 @@ zfs_create_ancestors(libzfs_handle_t *hdl, const char *path) int prefix; uint64_t zoned; char *path_copy; - int rc; + int rc = 0; if (check_parents(hdl, path, &zoned, B_TRUE, &prefix) != 0) return (-1);