未验证 提交 c1b1ccfb 编写于 作者: Y yiak 提交者: GitHub

Update tinyformat.h (#31612)

Quick fix to https://github.com/PaddlePaddle/Paddle/issues/13860
上级 9c624b16
......@@ -777,7 +777,7 @@ inline void formatImpl(std::ostream &out, const char *fmt,
// Print remaining part of format string.
fmt = printFormatStringLiteral(out, fmt);
if (*fmt != '\0')
if (fmt != nullptr && *fmt != '\0' && *fmt != 0)
TINYFORMAT_ERROR(
"tinyformat: Too many conversion specifiers in format string");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册