aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-12-06 21:33:55 +0000
committerEric Andersen <andersen@codepoet.org>2001-12-06 21:33:55 +0000
commit6834ee941aa07177dbe55a702e11d67f89d0cc88 (patch)
tree1c2d117a60207b779b69e3f2ccb17794d2867f01 /util-linux
parent54805af092caaa04a4247560127234ba92ac122d (diff)
downloadbusybox-6834ee941aa07177dbe55a702e11d67f89d0cc88.tar.gz
Avoid NULL pointer problems. Patch from "Frank P. MacLachlan"
<fpm-plutus@tgs.indyme.com>
Diffstat (limited to 'util-linux')
-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)
if (all == TRUE || flags == 0) { // Allow single mount to override fstab flags
flags = 0;
+ string_flags = string_flags_buf;
*string_flags = '\0';
parse_mount_options(m->mnt_opts, &flags, string_flags);
}