summaryrefslogtreecommitdiff
path: root/pyuno
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-26 15:00:48 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-26 15:51:57 +0100
commitb15532a03c48c67a1aad52b4582e9271f8872381 (patch)
tree117c1b78d6bcaf7aac469209749ba0b0d1075dfe /pyuno
parente17245c0c2050b94ffdbdf664615c3813a198dd7 (diff)
coverity#982761 Dereference null return value
Change-Id: I35e93ccf5992236d163d708089cd798e324157fb
Diffstat (limited to 'pyuno')
-rw-r--r--pyuno/source/module/pyuno_type.cxx2
1 files changed, 1 insertions, 1 deletions
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 );