diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-02-26 03:46:04 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-02-26 04:32:03 +0100 |
commit | dd7a22a990023f083ef488177fb46c9c4667009b (patch) | |
tree | 2a2da05de23467f66e64000654c38a21e212ba74 | |
parent | 1ae383a8a3ae4824453e297352fda603d2d3fd5e (diff) |
mount: minor modernization
-rw-r--r-- | src/core/mount.c | 7 |
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; } |