提交 c7008ca8 编写于 作者: D Daniel Gustafsson

Use a format string for errmsg() of literal

Using the string literal in errmsg directly without a format string
triggers warnings in clang under -Wformat-security. Use a simple
format string containing just a reference to the string literal to
avoid warnings and possibly hiding bugs.
上级 9e7e0302
......@@ -129,7 +129,7 @@ elog_error(int level, char *explain, int force)
if (pgxml_errorMsg == NULL)
{
ereport(level, (errcode(ERRCODE_EXTERNAL_ROUTINE_EXCEPTION),
errmsg(explain)));
errmsg("%s", explain)));
}
else
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册