stand/zfs: fix path setup in zfs_mount()

Need to check argument 'path', not just allocated struct member.
This commit is contained in:
Toomas Soome
2026-01-28 10:32:13 +02:00
parent 4daf2d3e7d
commit ab5f29ae9e
+1 -1
View File
@@ -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;