summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-31 14:33:26 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-03-31 14:35:16 +0100
commit53851801c62185541ccbee4421f9327b225771a2 (patch)
treeacc917c1ae9f32865eaef036a206984082ab8b8a /sal
parent0f492c419be2110937d3116f5c86c026d733f797 (diff)
coverity#983373 Dereference before null check
Change-Id: Ie2a6b5e71f76ff2900ff078fcc098e66927458ef
Diffstat (limited to 'sal')
-rw-r--r--sal/rtl/strtmpl.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sal/rtl/strtmpl.cxx b/sal/rtl/strtmpl.cxx
index 957609692449..c3d42c4d8a27 100644
--- a/sal/rtl/strtmpl.cxx
+++ b/sal/rtl/strtmpl.cxx
@@ -1364,9 +1364,7 @@ void SAL_CALL IMPL_RTL_STRINGNAME( ensureCapacity )( IMPL_RTL_STRINGDATA** ppThi
*ppThis = pTempStr;
RTL_LOG_STRING_NEW( *ppThis );
- /* must be done last, if pStr == *ppThis */
- if ( pOrg )
- IMPL_RTL_STRINGNAME( release )( pOrg );
+ IMPL_RTL_STRINGNAME( release )( pOrg );
}
/* ----------------------------------------------------------------------- */