summaryrefslogtreecommitdiff
path: root/store
diff options
context:
space:
mode:
authorCaolán McNamara <cmc@openoffice.org>2009-11-06 11:12:51 +0000
committerCaolán McNamara <cmc@openoffice.org>2009-11-06 11:12:51 +0000
commitc386a69ea72c42fd1162dd8f4a6db4d22974d0ff (patch)
treead55ef4588c68655dc86fbdcb3402f84eda37472 /store
parent3ed563cc4297f80f9a8ba9e190a2a3e54fb2824b (diff)
cmcfixes66: #i106675# silence gcc's memset warning on 0 len when the len really is 0
Diffstat (limited to 'store')
-rw-r--r--store/source/stordata.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/store/source/stordata.hxx b/store/source/stordata.hxx
index 1b6c74c371fd..4610bac425fd 100644
--- a/store/source/stordata.hxx
+++ b/store/source/stordata.hxx
@@ -93,7 +93,7 @@ struct OStoreDataPageData : public store::OStorePageData
{
base::m_aGuard.m_nMagic = store::htonl(self::theTypeId);
base::m_aDescr.m_nUsed = store::htons(self::thePageSize);
- memset (m_pData, 0, capacity());
+ if (capacity()) memset (m_pData, 0, capacity());
}
/** guard (external representation).