[icinga-checkins] icinga.org: icinga2/master: Python: Add missing NULL sentinel in PyObject_CallFunctionObjArgs() call.

git at icinga.org git at icinga.org
Sat Feb 16 12:36:55 CET 2013


Module: icinga2
Branch: master
Commit: efb62f4b5c1219b404c5b26cdc02aa1821007548
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=efb62f4b5c1219b404c5b26cdc02aa1821007548

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Sat Feb 16 12:36:37 2013 +0100

Python: Add missing NULL sentinel in PyObject_CallFunctionObjArgs() call.

---

 lib/python/pythonlanguage.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/python/pythonlanguage.cpp b/lib/python/pythonlanguage.cpp
index 3ea81bd..d6d8337 100644
--- a/lib/python/pythonlanguage.cpp
+++ b/lib/python/pythonlanguage.cpp
@@ -220,7 +220,7 @@ String PythonLanguage::ExceptionInfoToString(PyObject *type, PyObject *exc, PyOb
 	if (!PyCallable_Check(format_exception))
 		return "Failed to format exception information.";
 
-	PyObject *result = PyObject_CallFunctionObjArgs(format_exception, type, exc, tb);
+	PyObject *result = PyObject_CallFunctionObjArgs(format_exception, type, exc, tb, NULL);
 
 	Py_DECREF(format_exception);
 	Py_DECREF(tb_dict);





More information about the icinga-checkins mailing list