aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux')
-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 c3c13bae4..35866ea76 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;