mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-30 06:25:25 +03:00
mount: minor modernization
This commit is contained in:
parent
1ae383a8a3
commit
dd7a22a990
@ -1479,9 +1479,10 @@ static int mount_add_one(
|
||||
}
|
||||
}
|
||||
|
||||
if (!(w = strdup(what)) ||
|
||||
!(o = strdup(options)) ||
|
||||
!(f = strdup(fstype))) {
|
||||
w = strdup(what);
|
||||
o = strdup(options);
|
||||
f = strdup(fstype);
|
||||
if (!w || !o || !f) {
|
||||
r = -ENOMEM;
|
||||
goto fail;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user