From 0b3ec192259a65971001ce8f0de85a9c1e71d9c7 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Thu, 23 Mar 2017 17:53:47 +0200 Subject: 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. --- Parser/listnode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Parser') 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; -- cgit v1.2.1