summaryrefslogtreecommitdiffstats
path: root/connectivity/source/drivers/firebird/Util.cxx
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2014-12-08 19:36:22 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-12-09 03:24:35 +0000
commit54cbb57d4c3ccf1e1c8455ac413183edbdeb3416 (patch)
tree989caae10d27ec9907b298af288ad2a4ef175622 /connectivity/source/drivers/firebird/Util.cxx
parentfdo#39440 reduce scope of local variables (diff)
downloadcore-54cbb57d4c3ccf1e1c8455ac413183edbdeb3416.tar.gz
core-54cbb57d4c3ccf1e1c8455ac413183edbdeb3416.zip
fdo#39440 reduce scope of local variables
This addresses some cppcheck warnings. Change-Id: Ib35eb591534c3f23adc3cb7b7fa9696dc5cbeabf Reviewed-on: https://gerrit.libreoffice.org/13383 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'connectivity/source/drivers/firebird/Util.cxx')
-rw-r--r--connectivity/source/drivers/firebird/Util.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/drivers/firebird/Util.cxx b/connectivity/source/drivers/firebird/Util.cxx
index d682ac31378e..f0b85913182e 100644
--- a/connectivity/source/drivers/firebird/Util.cxx
+++ b/connectivity/source/drivers/firebird/Util.cxx
@@ -28,12 +28,12 @@ OUString firebird::StatusVectorToString(const ISC_STATUS_ARRAY& rStatusVector,
const OUString& rCause)
{
OUStringBuffer buf;
- char msg[512]; // Size is based on suggestion in docs.
const ISC_STATUS* pStatus = (const ISC_STATUS*) &rStatusVector;
buf.appendAscii("firebird_sdbc error:");
try
{
+ char msg[512]; // Size is based on suggestion in docs.
while(fb_interpret(msg, sizeof(msg), &pStatus))
{
// TODO: verify encoding