From 5bdc28028c6b4959d045e2f52ab852efa947e8f9 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 26 May 2014 14:58:59 +0100 Subject: coverity#982760 Dereference null return value Change-Id: I779fa5fa418370dd6c53308943374e981f65ae29 --- pyuno/source/module/pyuno_type.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyuno/source') diff --git a/pyuno/source/module/pyuno_type.cxx b/pyuno/source/module/pyuno_type.cxx index 0d8e63050fd1..5c0e2f30c52c 100644 --- a/pyuno/source/module/pyuno_type.cxx +++ b/pyuno/source/module/pyuno_type.cxx @@ -265,7 +265,7 @@ PyObject *PyUNO_Enum_new( const char *enumBase, const char *enumValue, const Run PyObject* PyUNO_Type_new (const char *typeName , TypeClass t , const Runtime &r ) { // retrieve type object - 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( typeName ) ); PyObject *typeClass = PyUNO_Enum_new( "com.sun.star.uno.TypeClass" , typeClassToString(t), r ); -- cgit