chiark / gitweb /
mount: properly check return for mount_add_*
[elogind.git] / src / mount.c
index f80fcf5f4ab29c16052e0df8940fa41206e05210..982715a6dba86ddd2f34c6666ab53318de3f1c93 100644 (file)
@@ -1578,7 +1578,7 @@ static int mount_load_etc_fstab(Manager *m) {
                 free(what);
                 free(where);
 
-                if (r < 0)
+                if (k < 0)
                         r = k;
         }