From 6834ee941aa07177dbe55a702e11d67f89d0cc88 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 6 Dec 2001 21:33:55 +0000 Subject: [PATCH] Avoid NULL pointer problems. Patch from "Frank P. MacLachlan" --- util-linux/mount.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.25.1