Merge pull request #1484 from BeeeOn/fix-odbc-valgrind-warning

ODBC: fix uninitialized variable
This commit is contained in:
Günter Obiltschnig 2016-11-10 19:52:13 +01:00 committed by GitHub
commit 0efea33022

View File

@ -499,7 +499,7 @@ int ODBCStatementImpl::affectedRowCount() const
{
if (0 == _affectedRowCount)
{
SQLLEN rows;
SQLLEN rows = 0;
if (!Utility::isError(SQLRowCount(_stmt, &rows)))
_affectedRowCount = static_cast<std::size_t>(rows);
}