Kaydet (Commit) 6af39266 authored tarafından David Tardon's avatar David Tardon

WaE: null argument where non-null required (argument 2)

Change-Id: I3eb71120aed85a4ec2c697d149006bce063d983e
üst 924a28a7
...@@ -354,7 +354,8 @@ void OPreparedStatement::setParameter(const sal_Int32 parameterIndex, const sal_ ...@@ -354,7 +354,8 @@ void OPreparedStatement::setParameter(const sal_Int32 parameterIndex, const sal_
nCharLen = u.size(); nCharLen = u.size();
nByteLen = 4 * nCharLen; nByteLen = 4 * nCharLen;
pData = allocBindBuf(parameterIndex, nByteLen); pData = allocBindBuf(parameterIndex, nByteLen);
memcpy(pData, u.empty() ? 0 : &u[0], nByteLen); if (!u.empty())
memcpy(pData, &u[0], nByteLen);
} }
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment