summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-01-24 04:03:41 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-01-25 03:10:52 -0600
commit57f288fdcc775f044700aac98c8cf94024c4b7db (patch)
treec64e345b9cdca3e57cefc73168b4385923a4722a /idlc
parent4b1ab968716a82edfa956999336e5eb7cc8407bc (diff)
coverity#440240 Dereference after null check
Change-Id: I1ca5e4d31ab203a0ddd5e98928f5046f5fffb485
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/astexpression.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/idlc/source/astexpression.cxx b/idlc/source/astexpression.cxx
index 69b5f9f6248a..995796e22f7b 100644
--- a/idlc/source/astexpression.cxx
+++ b/idlc/source/astexpression.cxx
@@ -1138,7 +1138,7 @@ OString AstExpression::toString()
{
OString exprStr;
if ( m_combOperator == EC_symbol )
- return *m_pSymbolicName;
+ return m_pSymbolicName ? *m_pSymbolicName : OString("<Undefined Name>");
if ( m_exprValue )
{