summaryrefslogtreecommitdiff
path: root/Parser
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 /Parser
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 'Parser')
-rw-r--r--Parser/listnode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/listnode.c b/Parser/listnode.c
index b5f8ad23a9..71300ae908 100644
--- a/Parser/listnode.c
+++ b/Parser/listnode.c
@@ -28,7 +28,7 @@ listnode(FILE *fp, node *n)
static void
list1node(FILE *fp, node *n)
{
- if (n == 0)
+ if (n == NULL)
return;
if (ISNONTERMINAL(TYPE(n))) {
int i;