From c386a69ea72c42fd1162dd8f4a6db4d22974d0ff Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 6 Nov 2009 11:12:51 +0000 Subject: cmcfixes66: #i106675# silence gcc's memset warning on 0 len when the len really is 0 --- store/source/stordata.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'store') 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). -- cgit