summaryrefslogtreecommitdiff
path: root/pyuno
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-26 15:01:20 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-26 15:51:57 +0100
commit88d9c8705882b4791d42955a465cc3e7a2efaa3f (patch)
treeefecbc1660b0e888ff0b5f6f3f4190ab3ada258b /pyuno
parentb15532a03c48c67a1aad52b4582e9271f8872381 (diff)
coverity#982758 Dereference null return value
Change-Id: Ia797bbd9c5587d2b55dd183a377e5b3dded96e7b
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 592d81bed28a..283362669c00 100644
--- a/pyuno/source/module/pyuno_type.cxx
+++ b/pyuno/source/module/pyuno_type.cxx
@@ -254,7 +254,7 @@ static PyObject* callCtor( const Runtime &r , const char * clazz, const PyRef &
PyObject *PyUNO_Enum_new( const char *enumBase, const char *enumValue, const Runtime &r )
{
- PyRef args( PyTuple_New( 2 ), SAL_NO_ACQUIRE );
+ PyRef args( PyTuple_New( 2 ), SAL_NO_ACQUIRE, NOT_NULL );
PyTuple_SetItem( args.get() , 0 , PyStr_FromString( enumBase ) );
PyTuple_SetItem( args.get() , 1 , PyStr_FromString( enumValue ) );