diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-05-30 14:45:22 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-05-30 14:45:22 (GMT) |
commit | fa494fd88384acc52cf9292d0c89e2961c8f747f (patch) | |
tree | a30958b83189caf872f34e7b94a1aeeef28ed3a9 /Modules/faulthandler.c | |
parent | 50451eb91232b0e90c677419db19ed7b33a698a9 (diff) | |
download | cpython-fa494fd88384acc52cf9292d0c89e2961c8f747f.zip cpython-fa494fd88384acc52cf9292d0c89e2961c8f747f.tar.gz cpython-fa494fd88384acc52cf9292d0c89e2961c8f747f.tar.bz2 |
Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(),
PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains()
to check for and handle errors correctly.
Diffstat (limited to 'Modules/faulthandler.c')
-rw-r--r-- | Modules/faulthandler.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/faulthandler.c b/Modules/faulthandler.c index c729414..1493f8d 100644 --- a/Modules/faulthandler.c +++ b/Modules/faulthandler.c @@ -1087,8 +1087,8 @@ faulthandler_env_options(void) has_key = PyDict_Contains(xoptions, key); Py_DECREF(key); - if (!has_key) - return 0; + if (has_key <= 0) + return has_key; } module = PyImport_ImportModule("faulthandler"); |