From 88d9c8705882b4791d42955a465cc3e7a2efaa3f Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 26 May 2014 15:01:20 +0100 Subject: coverity#982758 Dereference null return value Change-Id: Ia797bbd9c5587d2b55dd183a377e5b3dded96e7b --- pyuno/source/module/pyuno_type.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyuno') 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 ) ); -- cgit