8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 04:43:03 +01:00

Corrections (PVS-Studio).

This commit is contained in:
robocop 2014-02-22 07:09:47 +00:00
parent 85b7075cf9
commit fefc8f9d00
2 changed files with 2 additions and 2 deletions

View File

@ -665,7 +665,7 @@ string IntlUtil::escapeAttribute(Jrd::CharSet* cs, const string& s)
ULONG l;
UCHAR* uc = (UCHAR*)(&l);
const ULONG uSize = cs->getConvToUnicode().convert(size, p, sizeof(uc), uc);
const ULONG uSize = cs->getConvToUnicode().convert(size, p, sizeof(l), uc);
if (uSize == 2)
{

View File

@ -1826,7 +1826,7 @@ static bool get_switches(int argc,
return false;
}
if (**argv != 'n' || **argv != 'N')
if (**argv != 'n' && **argv != 'N')
{
fprintf(stderr, "-sqlda : Deprecated Feature: you must use XSQLDA\n ");
print_switches();