Avoid NULL pointer problems. Patch from "Frank P. MacLachlan"
authorEric Andersen <andersen@codepoet.org>
Thu, 6 Dec 2001 21:33:55 +0000 (21:33 -0000)
committerEric Andersen <andersen@codepoet.org>
Thu, 6 Dec 2001 21:33:55 +0000 (21:33 -0000)
<fpm-plutus@tgs.indyme.com>

util-linux/mount.c

index e26d4db7a03cb711bf714a29175b27619730996a..755a3fb132784f180d9cbd93e9228978dbb89dac 100644 (file)
@@ -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);
                        }