diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-26 15:00:11 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-26 15:51:57 +0100 |
commit | e17245c0c2050b94ffdbdf664615c3813a198dd7 (patch) | |
tree | 8e1088e4ad1df2df72746329ecb3dd97ae09b58b /pyuno/source/module | |
parent | 5bdc28028c6b4959d045e2f52ab852efa947e8f9 (diff) |
coverity#982759 Dereference null return value
Change-Id: I72209c52d6a8d036f0903f39b91fc62a2880448b
Diffstat (limited to 'pyuno/source/module')
-rw-r--r-- | pyuno/source/module/pyuno_type.cxx | 2 |
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; |