diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-26 15:00:48 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-26 15:51:57 +0100 |
commit | b15532a03c48c67a1aad52b4582e9271f8872381 (patch) | |
tree | 117c1b78d6bcaf7aac469209749ba0b0d1075dfe /pyuno | |
parent | e17245c0c2050b94ffdbdf664615c3813a198dd7 (diff) |
coverity#982761 Dereference null return value
Change-Id: I35e93ccf5992236d163d708089cd798e324157fb
Diffstat (limited to 'pyuno')
-rw-r--r-- | pyuno/source/module/pyuno_type.cxx | 2 |
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 ); |