From a726d03086eb2d1bc7f1ff64e54f73a7a44e71e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Timm?= Date: Thu, 3 Jul 2008 08:23:40 +0000 Subject: [PATCH] #i10000# Avoid 'may be used uninitialized' warning. --- .../source/commontools/FDatabaseMetaDataResultSet.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx b/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx index 1de45d4aec80..c4f34f382190 100644 --- a/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx +++ b/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: FDatabaseMetaDataResultSet.cxx,v $ - * $Revision: 1.23 $ + * $Revision: 1.24 $ * * This file is part of OpenOffice.org. * @@ -734,7 +734,7 @@ void SAL_CALL ODatabaseMetaDataResultSet::initialize( const Sequence< Any >& _aA { if ( _aArguments.getLength() == 2 ) { - sal_Int32 nResultSetType; + sal_Int32 nResultSetType = 0; if ( _aArguments[0] >>= nResultSetType) { setType(static_cast(nResultSetType)); @@ -756,7 +756,7 @@ void SAL_CALL ODatabaseMetaDataResultSet::initialize( const Sequence< Any >& _aA { case TypeClass_BOOLEAN: { - sal_Bool bValue; + sal_Bool bValue = sal_False; *pRowIter >>= bValue; aValue = new ORowSetValueDecorator(ORowSetValue(bValue)); }