diff options
author | David Tardon <dtardon@redhat.com> | 2011-05-19 11:52:37 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2011-08-08 12:29:46 +0200 |
commit | 834bdb3d3ecb801ad23b1f9a7b3473e2483aa902 (patch) | |
tree | ecaa1428f3c129033ba04a8c8af6eed26510eba1 /tools | |
parent | 2fdacd0142fea608423c417a0b06e54e6a7915a3 (diff) |
avoid possible NULL ptr deref.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/rc/resmgr.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/source/rc/resmgr.cxx b/tools/source/rc/resmgr.cxx index f45d91b7c349..5a44dfa24c95 100644 --- a/tools/source/rc/resmgr.cxx +++ b/tools/source/rc/resmgr.cxx @@ -465,7 +465,7 @@ InternalResMgr* ResMgrContainer::getNextFallback( InternalResMgr* pMgr ) } InternalResMgr* pNext = getResMgr( pMgr->aPrefix, aLocale, pMgr->bSingular ); // prevent recursion - if( pNext == pMgr || pNext->aResName.equals( pMgr->aResName ) ) + if( pNext == pMgr || ( pNext && pNext->aResName.equals( pMgr->aResName ) ) ) { if( pNext->bSingular ) delete pNext; |