From b15532a03c48c67a1aad52b4582e9271f8872381 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 26 May 2014 15:00:48 +0100 Subject: coverity#982761 Dereference null return value Change-Id: I35e93ccf5992236d163d708089cd798e324157fb --- pyuno/source/module/pyuno_type.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyuno') diff --git a/pyuno/source/module/pyuno_type.cxx b/pyuno/source/module/pyuno_type.cxx index 81f18f73b86b..592d81bed28a 100644 --- a/pyuno/source/module/pyuno_type.cxx +++ b/pyuno/source/module/pyuno_type.cxx @@ -295,7 +295,7 @@ PyObject *PyUNO_ByteSequence_new( PyRef str( PyStrBytes_FromStringAndSize( (char*)byteSequence.getConstArray(), byteSequence.getLength()), SAL_NO_ACQUIRE ); - PyRef args( PyTuple_New( 1 ), SAL_NO_ACQUIRE ); + PyRef args( PyTuple_New( 1 ), SAL_NO_ACQUIRE, NOT_NULL ); PyTuple_SetItem( args.get() , 0 , str.getAcquired() ); return callCtor( r, "ByteSequence" , args ); -- cgit v1.2.3