summaryrefslogtreecommitdiff
path: root/src/mount.c
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2012-02-17 12:17:49 -0500
committerLennart Poettering <lennart@poettering.net>2012-03-06 02:16:41 +0100
commit85eda5721f8d2a20482ef228d341fbbd134c6799 (patch)
tree60f91d549d8b1e141d6e14a9361177edb3e82582 /src/mount.c
parente2e9329411a3753421e97c084d0f177003b20970 (diff)
mount: properly check return for mount_add_*
Previously, mount_load_etc_fstab() could never fail for reasons other than a setmntent() or allocation failure.
Diffstat (limited to 'src/mount.c')
-rw-r--r--src/mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mount.c b/src/mount.c
index f80fcf5f4a..982715a6db 100644
--- a/src/mount.c
+++ b/src/mount.c
@@ -1578,7 +1578,7 @@ static int mount_load_etc_fstab(Manager *m) {
free(what);
free(where);
- if (r < 0)
+ if (k < 0)
r = k;
}