diff options
author | Caolán McNamara <cmc@openoffice.org> | 2009-11-06 11:12:51 +0000 |
---|---|---|
committer | Caolán McNamara <cmc@openoffice.org> | 2009-11-06 11:12:51 +0000 |
commit | e37c935982d48726dc5f81ad0993157348e2d661 (patch) | |
tree | 40ebfb330585a18024377484ae2a6b408b2ca062 /store/source | |
parent | 27909d367f1a52bcbffa24e1587aa504986b5e8b (diff) |
cmcfixes66: #i106675# silence gcc's memset warning on 0 len when the len really is 0
Diffstat (limited to 'store/source')
-rw-r--r-- | store/source/stordata.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/store/source/stordata.hxx b/store/source/stordata.hxx index b86287b06..67fda8370 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). |