Kaydet (Commit) d7f5e7e0 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1421119 Dereference after null check

Change-Id: Ic5002a25ed51fe72e1f36f365707101632d786e1
Reviewed-on: https://gerrit.libreoffice.org/48905Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 5e787f43
...@@ -84,11 +84,17 @@ OSQLScanner* xxx_pGLOBAL_SQLSCAN = nullptr; ...@@ -84,11 +84,17 @@ OSQLScanner* xxx_pGLOBAL_SQLSCAN = nullptr;
result = (c == EOF) ? YY_NULL : (buf[0] = c, 1);\ result = (c == EOF) ? YY_NULL : (buf[0] = c, 1);\
} }
#define YY_FATAL_ERROR(msg) \ // coverity[+kill]
{ \ static void do_fatal_error(const char* msg)
xxx_pGLOBAL_SQLSCAN->SQLyyerror(msg); \ {
/*hack to silence -Wunused-function*/ \ xxx_pGLOBAL_SQLSCAN->SQLyyerror(msg);
if (0) yy_fatal_error(msg); \ /*hack to silence -Wunused-function*/
if (0) yy_fatal_error(msg);
}
#define YY_FATAL_ERROR(msg) \
{ \
do_fatal_error(msg); \
} }
%} %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment