diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-03-23 15:53:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-23 15:53:47 (GMT) |
commit | 0b3ec192259a65971001ce8f0de85a9c1e71d9c7 (patch) | |
tree | a1be55ac1679e3b80ccb4cc2e31c5c57fc4bbdc9 /Modules/_tkinter.c | |
parent | aefa7ebf0ff0f73feee7ab24f4cdcb2014d83ee5 (diff) | |
download | cpython-0b3ec192259a65971001ce8f0de85a9c1e71d9c7.zip cpython-0b3ec192259a65971001ce8f0de85a9c1e71d9c7.tar.gz cpython-0b3ec192259a65971001ce8f0de85a9c1e71d9c7.tar.bz2 |
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/_tkinter.c')
-rw-r--r-- | Modules/_tkinter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index ff51674..7ed2b02 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -1378,7 +1378,7 @@ Tkapp_CallArgs(PyObject *args, Tcl_Obj** objStore, int *pobjc) else if (!(PyTuple_Check(args) || PyList_Check(args))) { objv[0] = AsObj(args); - if (objv[0] == 0) + if (objv[0] == NULL) goto finally; objc = 1; Tcl_IncrRefCount(objv[0]); |