X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fpy-common%2Fpy-common.c;h=4fea4d27b5475ecfa5c6c28208ef8de3a0d79795;hp=ac780034ee0c661b7860db5a71b563b78cd739db;hb=5084732e40a7925d22f741e4ed08f19d36078fbe;hpb=cd1ef6f2860c2b6bf3c22ee984347029c31ac827 diff --git a/src/py-common/py-common.c b/src/py-common/py-common.c index ac780034..4fea4d27 100644 --- a/src/py-common/py-common.c +++ b/src/py-common/py-common.c @@ -44,9 +44,9 @@ GString *bt_py_common_format_exception(int log_level) const char *format_exc_func_name; Py_ssize_t i; - BT_ASSERT(PyErr_Occurred() != NULL); + BT_ASSERT(PyErr_Occurred()); PyErr_Fetch(&type, &value, &traceback); - BT_ASSERT(type != NULL); + BT_ASSERT(type); /* Make sure `value` is what we expected: an instance of `type` */ PyErr_NormalizeException(&type, &value, &traceback);