summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util-linux/mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index c3c13ba..35866ea 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -342,7 +342,7 @@ mount_it_now:
flags|=MS_RDONLY;
}
}
- if(!rc) break;
+ if(!rc || !f) break;
}
if(f) fclose(f);
if(!f || !rc) break;