1
1
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:
Lennart Poettering 2014-02-26 03:46:04 +01:00
parent 1ae383a8a3
commit dd7a22a990

View File

@ -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;
}