summaryrefslogtreecommitdiff
path: root/pyuno
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-26 15:00:11 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-26 15:51:57 +0100
commite17245c0c2050b94ffdbdf664615c3813a198dd7 (patch)
tree8e1088e4ad1df2df72746329ecb3dd97ae09b58b /pyuno
parent5bdc28028c6b4959d045e2f52ab852efa947e8f9 (diff)
coverity#982759 Dereference null return value
Change-Id: I72209c52d6a8d036f0903f39b91fc62a2880448b
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 5c0e2f30c52c..81f18f73b86b 100644
--- a/pyuno/source/module/pyuno_type.cxx
+++ b/pyuno/source/module/pyuno_type.cxx
@@ -279,7 +279,7 @@ PyObject* PyUNO_Type_new (const char *typeName , TypeClass t , const Runtime &r
PyObject* PyUNO_char_new ( sal_Unicode val , const Runtime &r )
{
// retrieve type object
- PyRef args( PyTuple_New( 1 ), SAL_NO_ACQUIRE );
+ PyRef args( PyTuple_New( 1 ), SAL_NO_ACQUIRE, NOT_NULL );
Py_UNICODE u[2];
u[0] = val;