From 59f002c253522012d2d5fdf97781e4a15e5de689 Mon Sep 17 00:00:00 2001 From: szaka Date: Tue, 15 Jul 2008 15:39:53 +0000 Subject: [PATCH] setup_logging(): fix printf NULL pointer crash on Solaris (Mark Phalan) --- src/ntfs-3g.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index f8b1b20b..120cf907 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -2221,7 +2221,7 @@ static void setup_logging(char *parsed_options) opts.device, (ctx->ro) ? "Read-Only" : "Read-Write", ctx->vol->vol_name, ctx->vol->major_ver, ctx->vol->minor_ver); - ntfs_log_info("Cmdline options: %s\n", opts.options); + ntfs_log_info("Cmdline options: %s\n", opts.options ? opts.options : ""); ntfs_log_info("Mount options: %s\n", parsed_options); }