diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-03-23 17:53:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-23 17:53:47 +0200 |
commit | 0b3ec192259a65971001ce8f0de85a9c1e71d9c7 (patch) | |
tree | a1be55ac1679e3b80ccb4cc2e31c5c57fc4bbdc9 /Modules/_cursesmodule.c | |
parent | aefa7ebf0ff0f73feee7ab24f4cdcb2014d83ee5 (diff) | |
download | cpython-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.c | 2 |
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 ); |