summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-29 13:31:52 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-29 13:37:59 +0000
commitccb5f1a7914ae857a447a7dceacc62344b8c78af (patch)
tree5f85a63735a64f1b7cb21b6d2f62570ae7ec9a9f /l10ntools
parent6459d7beb1235ed0cd2381c60f74c6c52479858d (diff)
coverity#1158098 Explicit null dereferenced
Change-Id: Id21a206df7d9c221fabf8503d959bfe314217214
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/source/export.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/l10ntools/source/export.cxx b/l10ntools/source/export.cxx
index 5694edf53c58..a1a2bc433a0a 100644
--- a/l10ntools/source/export.cxx
+++ b/l10ntools/source/export.cxx
@@ -853,6 +853,9 @@ void Export::InsertListEntry(const OString &rLine)
{
ResData *pResData = ( nLevel-1 < aResStack.size() ) ? aResStack[ nLevel-1 ] : NULL;
+ if (!pResData)
+ std::exit(EXIT_FAILURE);
+
if( pResData->m_aList.empty() )
nListIndex = 0;