summaryrefslogtreecommitdiff
path: root/Modules/_cursesmodule.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-03-23 17:53:47 +0200
committerGitHub <noreply@github.com>2017-03-23 17:53:47 +0200
commit0b3ec192259a65971001ce8f0de85a9c1e71d9c7 (patch)
treea1be55ac1679e3b80ccb4cc2e31c5c57fc4bbdc9 /Modules/_cursesmodule.c
parentaefa7ebf0ff0f73feee7ab24f4cdcb2014d83ee5 (diff)
downloadcpython-git-0b3ec192259a65971001ce8f0de85a9c1e71d9c7.tar.gz
Use NULL rather than 0. (#778)
There was few cases of using literal 0 instead of NULL in the context of pointers. While this was a legitimate C code, using NULL rather than 0 makes the code clearer.
Diffstat (limited to 'Modules/_cursesmodule.c')
-rw-r--r--Modules/_cursesmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index 4d714cecdf..8f0a12bbb0 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -2987,7 +2987,7 @@ PyCurses_tigetstr(PyObject *self, PyObject *args)
return NULL;
capname = tigetstr( capname );
- if (capname == 0 || capname == (char*) -1) {
+ if (capname == NULL || capname == (char*) -1) {
Py_RETURN_NONE;
}
return PyBytes_FromString( capname );