diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-03 17:08:49 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-03 20:10:18 +0100 |
commit | 86598a4e185007958117d2fbf1a2200c7b982808 (patch) | |
tree | b5a37f64ffccf16de894edf7134bf133a949b3be /pyuno | |
parent | 2ca70c3b5c1959c4aa052dbfae1db25a379b0579 (diff) |
coverity#982753 Dereference null return value
Change-Id: I011a600a27c801dca32734e680ea5a13dfebdfe3
Diffstat (limited to 'pyuno')
-rw-r--r-- | pyuno/source/module/pyuno_callable.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyuno/source/module/pyuno_callable.cxx b/pyuno/source/module/pyuno_callable.cxx index f91aa751c168..22b8cd1fd6ca 100644 --- a/pyuno/source/module/pyuno_callable.cxx +++ b/pyuno/source/module/pyuno_callable.cxx @@ -115,7 +115,7 @@ PyObject* PyUNO_callable_call( PyRef temp = runtime.any2PyObject (ret_value); if( aOutParam.getLength() ) { - PyRef return_list( PyTuple_New (1+aOutParam.getLength()), SAL_NO_ACQUIRE ); + PyRef return_list( PyTuple_New (1+aOutParam.getLength()), SAL_NO_ACQUIRE, NOT_NULL ); PyTuple_SetItem (return_list.get(), 0, temp.getAcquired()); // initialize with defaults in case of exceptions |