X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcore%2Fmount.c;h=b35e5078789f13e4382cd48b2a68435d1da11864;hp=814674a02d09f626420e9b75034877e197b20834;hb=dd7a22a990023f083ef488177fb46c9c4667009b;hpb=1ae383a8a3ae4824453e297352fda603d2d3fd5e diff --git a/src/core/mount.c b/src/core/mount.c index 814674a02..b35e50787 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; }