projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Standardize `!ptr` i/o `ptr == NULL`, `ptr` i/o `ptr != NULL`
[babeltrace.git]
/
src
/
py-common
/
py-common.c
diff --git
a/src/py-common/py-common.c
b/src/py-common/py-common.c
index ac780034ee0c661b7860db5a71b563b78cd739db..4fea4d27b5475ecfa5c6c28208ef8de3a0d79795 100644
(file)
--- 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;
const char *format_exc_func_name;
Py_ssize_t i;
- BT_ASSERT(PyErr_Occurred()
!= NULL
);
+ BT_ASSERT(PyErr_Occurred());
PyErr_Fetch(&type, &value, &traceback);
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);
/* Make sure `value` is what we expected: an instance of `type` */
PyErr_NormalizeException(&type, &value, &traceback);
This page took
0.02451 seconds
and
4
git commands to generate.