diff options
-rw-r--r-- | sal/rtl/byteseq.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sal/rtl/byteseq.cxx b/sal/rtl/byteseq.cxx index 64f815b4d73b..c78a1e22f43a 100644 --- a/sal/rtl/byteseq.cxx +++ b/sal/rtl/byteseq.cxx @@ -40,14 +40,13 @@ void SAL_CALL rtl_byte_sequence_reference2One( sal_Sequence ** ppSequence ) SAL_THROW_EXTERN_C() { sal_Sequence * pSequence, * pNew; - sal_Int32 nElements; OSL_ENSURE( ppSequence, "### null ptr!" ); pSequence = *ppSequence; if (pSequence->nRefCount > 1) { - nElements = pSequence->nElements; + sal_Int32 nElements = pSequence->nElements; if (nElements) { pNew = static_cast<sal_Sequence *>(malloc( SAL_SEQUENCE_HEADER_SIZE + nElements )); |