coverity#982761 Dereference null return value

Change-Id: I35e93ccf5992236d163d708089cd798e324157fb
This commit is contained in:
Caolán McNamara
2014-05-26 15:00:48 +01:00
parent e17245c0c2
commit b15532a03c

View File

@@ -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 );