mount: minor modernization
This commit is contained in:
+4
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user