From e37c935982d48726dc5f81ad0993157348e2d661 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/source') 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). -- cgit v1.2.3