diff options
author | David Tardon <dtardon@redhat.com> | 2012-05-23 11:59:22 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-05-29 07:24:49 +0200 |
commit | 62d48a972675a325f93b3b3781ba7f95898e15b4 (patch) | |
tree | 148ba3340201696b3f3a008781e0382e3285b773 /connectivity | |
parent | 0bd892ed039819a3ecebcdc2edf3813f8711672e (diff) |
WaE: the address of 'yytname' will always evaluate as 'true'
Change-Id: I6e39870bd5fea3bebb0f6f9ecf4ba5e68b4a9d5c
Diffstat (limited to 'connectivity')
-rwxr-xr-x | connectivity/source/parse/sqlbison.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/parse/sqlbison.y b/connectivity/source/parse/sqlbison.y index a58adac5878e..536cfc920474 100755 --- a/connectivity/source/parse/sqlbison.y +++ b/connectivity/source/parse/sqlbison.y @@ -4755,7 +4755,7 @@ sal_uInt32 OSQLParser::StrToRuleID(const ::rtl::OString & rValue) static sal_uInt32 nLen = SAL_N_ELEMENTS(yytname); for (sal_uInt32 i = YYTRANSLATE(SQL_TOKEN_INVALIDSYMBOL); i < (nLen-1); i++) { - if (yytname && rValue == yytname[i]) + if (rValue == yytname[i]) return i; } |