Kaydet (Commit) b15532a0 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#982761 Dereference null return value

Change-Id: I35e93ccf5992236d163d708089cd798e324157fb
üst e17245c0
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment