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 /src/core/mount.c | |
parent | Use /var/run/dbus/system_bus_socket for the D-Bus socket (diff) | |
download | systemd-dd7a22a990023f083ef488177fb46c9c4667009b.tar.xz systemd-dd7a22a990023f083ef488177fb46c9c4667009b.zip |
mount: minor modernization
Diffstat (limited to 'src/core/mount.c')
-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; } |