summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-02-26 03:46:04 +0100
committerLennart Poettering <lennart@poettering.net>2014-02-26 04:32:03 +0100
commitdd7a22a990023f083ef488177fb46c9c4667009b (patch)
tree2a2da05de23467f66e64000654c38a21e212ba74 /src
parent1ae383a8a3ae4824453e297352fda603d2d3fd5e (diff)
mount: minor modernization
Diffstat (limited to 'src')
-rw-r--r--src/core/mount.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/mount.c b/src/core/mount.c
index 814674a02d..b35e507878 100644
--- a/src/core/mount.c
+++ b/src/core/mount.c
@@ -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;
}