stand/zfs: fix path setup in zfs_mount()
Need to check argument 'path', not just allocated struct member.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user