chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ae383a
)
mount: minor modernization
author
Lennart Poettering
<lennart@poettering.net>
Wed, 26 Feb 2014 02:46:04 +0000
(
03:46
+0100)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 26 Feb 2014 03:32:03 +0000
(
04:32
+0100)
src/core/mount.c
patch
|
blob
|
history
diff --git
a/src/core/mount.c
b/src/core/mount.c
index 814674a02d09f626420e9b75034877e197b20834..b35e5078789f13e4382cd48b2a68435d1da11864 100644
(file)
--- 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;
}