diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-31 14:33:26 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-31 14:35:16 +0100 |
commit | 53851801c62185541ccbee4421f9327b225771a2 (patch) | |
tree | acc917c1ae9f32865eaef036a206984082ab8b8a | |
parent | 0f492c419be2110937d3116f5c86c026d733f797 (diff) |
coverity#983373 Dereference before null check
Change-Id: Ie2a6b5e71f76ff2900ff078fcc098e66927458ef
-rw-r--r-- | sal/rtl/strtmpl.cxx | 4 |
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 ); } /* ----------------------------------------------------------------------- */ |