mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-01 09:24:55 +02:00
Merge pull request #1484 from BeeeOn/fix-odbc-valgrind-warning
ODBC: fix uninitialized variable
This commit is contained in:
commit
0efea33022
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user