aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@FreeBSD.org>2026-01-28 08:32:13 +0000
committerToomas Soome <tsoome@FreeBSD.org>2026-01-28 08:32:13 +0000
commitab5f29ae9ef0246cee27d246ee48923030575aae (patch)
tree86dcbd7e29286cac9b524ffde40803db57ba3a01
parent4daf2d3e7db53a113108f9a02ceaf5051d416184 (diff)
stand/zfs: fix path setup in zfs_mount()
Need to check argument 'path', not just allocated struct member.
-rw-r--r--stand/libsa/zfs/zfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stand/libsa/zfs/zfs.c b/stand/libsa/zfs/zfs.c
index 70a102f6425d..ead772dc9c90 100644
--- a/stand/libsa/zfs/zfs.c
+++ b/stand/libsa/zfs/zfs.c
@@ -410,7 +410,7 @@ zfs_mount(const char *dev, const char *path, void **data)
goto err;
}
- if (mnt->path != NULL) {
+ if (path != NULL) {
mnt->path = strdup(path);
if (mnt->path == NULL) {
rv = ENOMEM;