summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-11 11:22:58 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-11 11:52:32 +0100
commite3766a2301a4c7edc1bc52376f6c6d53664ed1dd (patch)
tree6187625ab121d20874e3000e6a1ec1102836f564 /connectivity
parent570e20e63c27174d19983103f9374ec9c2fe9f1f (diff)
coverity#707693 Uninitialized scalar field
Change-Id: Iac219b6aba06a3754caa75e7c5303ce43c81606b
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/inc/dbase/DTable.hxx16
1 files changed, 11 insertions, 5 deletions
diff --git a/connectivity/source/inc/dbase/DTable.hxx b/connectivity/source/inc/dbase/DTable.hxx
index a8d602376aea..580f0ffcce3e 100644
--- a/connectivity/source/inc/dbase/DTable.hxx
+++ b/connectivity/source/inc/dbase/DTable.hxx
@@ -73,11 +73,17 @@ namespace connectivity
sal_uInt8 db_frei2[14]; /* Reserved */
};
struct DBFMemoHeader
- {
- DBFMemoType db_typ; /* File type */
- sal_uInt32 db_next; /* Next free block */
- sal_uInt16 db_size; /* Block size: dBase 3 fixed */
- };
+ {
+ DBFMemoType db_typ; /* File type */
+ sal_uInt32 db_next; /* Next free block */
+ sal_uInt16 db_size; /* Block size: dBase 3 fixed */
+ DBFMemoHeader()
+ : db_typ(MemodBaseIII)
+ , db_next(0)
+ , db_size(0)
+ {
+ }
+ };
::std::vector<sal_Int32> m_aTypes; // holds all types for columns just to avoid to ask the propertyset
::std::vector<sal_Int32> m_aPrecisions; // same as above