aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util-linux/mount.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index e26d4db7a..755a3fb13 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -457,6 +457,7 @@ extern int mount_main(int argc, char **argv)
457 457
458 if (all == TRUE || flags == 0) { // Allow single mount to override fstab flags 458 if (all == TRUE || flags == 0) { // Allow single mount to override fstab flags
459 flags = 0; 459 flags = 0;
460 string_flags = string_flags_buf;
460 *string_flags = '\0'; 461 *string_flags = '\0';
461 parse_mount_options(m->mnt_opts, &flags, string_flags); 462 parse_mount_options(m->mnt_opts, &flags, string_flags);
462 } 463 }