提交 e97835ad 编写于 作者: B Behdad Esfahbod

[util] Fix crash when --output-file is specified but not --output-format

上级 d5f0d7c9
......@@ -401,7 +401,10 @@ struct output_options_t : option_group_t
if (output_file && !output_format) {
output_format = strrchr (output_file, '.');
if (output_format)
{
output_format++; /* skip the dot */
output_format = strdup (output_format);
}
}
if (output_file && 0 == strcmp (output_file, "-"))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册