setup_logging(): fix printf NULL pointer crash on Solaris (Mark Phalan)

master
szaka 2008-07-15 15:39:53 +00:00
parent 45f3921b74
commit 59f002c253
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}