mount: minor modernization

This commit is contained in:
Lennart Poettering
2014-02-26 04:32:03 +01:00
parent 1ae383a8a3
commit dd7a22a990
+4 -3
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;
}