diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-03 08:50:03 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-03 12:49:37 +0100 |
commit | a215499bf3e30bcb5ec152823c227ab0ce256cc6 (patch) | |
tree | 33ca8858c28261bf4149fb361c8c8c74ae46617b /connectivity | |
parent | 82e41a0cd250fa720ba4b545172517ce74dd6814 (diff) |
clang scan-build: Argument with 'nonnull' attribute passed null
Change-Id: I7e8700936cf98a672a2513232cf4247f1783c41b
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/dbase/DTable.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/connectivity/source/drivers/dbase/DTable.cxx b/connectivity/source/drivers/dbase/DTable.cxx index 7294970deb51..b408f39935ce 100644 --- a/connectivity/source/drivers/dbase/DTable.cxx +++ b/connectivity/source/drivers/dbase/DTable.cxx @@ -1470,6 +1470,8 @@ bool ODbaseTable::InsertRow(OValueRefVector& rRow, bool bFlush, const Reference< { // fill buffer with blanks AllocBuffer(); + if (!m_pBuffer) + return false; memset(m_pBuffer, 0, m_aHeader.db_slng); m_pBuffer[0] = ' '; |