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. --- Modules/_sqlite/module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Modules/_sqlite/module.c') diff --git a/Modules/_sqlite/module.c b/Modules/_sqlite/module.c index 72c3a7f34f..59406e1d77 100644 --- a/Modules/_sqlite/module.c +++ b/Modules/_sqlite/module.c @@ -434,7 +434,7 @@ PyMODINIT_FUNC PyInit__sqlite3(void) PyDict_SetItemString(dict, "OptimizedUnicode", (PyObject*)&PyUnicode_Type); /* Set integer constants */ - for (i = 0; _int_constants[i].constant_name != 0; i++) { + for (i = 0; _int_constants[i].constant_name != NULL; i++) { tmp_obj = PyLong_FromLong(_int_constants[i].constant_value); if (!tmp_obj) { goto error; -- cgit v1.2.1