summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite/connection.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-03-23 15:53:47 (GMT)
committerGitHub <noreply@github.com>2017-03-23 15:53:47 (GMT)
commit0b3ec192259a65971001ce8f0de85a9c1e71d9c7 (patch)
treea1be55ac1679e3b80ccb4cc2e31c5c57fc4bbdc9 /Modules/_sqlite/connection.c
parentaefa7ebf0ff0f73feee7ab24f4cdcb2014d83ee5 (diff)
downloadcpython-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/_sqlite/connection.c')
-rw-r--r--Modules/_sqlite/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c
index 72156b9..fab77ef 100644
--- a/Modules/_sqlite/connection.c
+++ b/Modules/_sqlite/connection.c
@@ -643,7 +643,7 @@ static void _pysqlite_step_callback(sqlite3_context *context, int argc, sqlite3_
aggregate_instance = (PyObject**)sqlite3_aggregate_context(context, sizeof(PyObject*));
- if (*aggregate_instance == 0) {
+ if (*aggregate_instance == NULL) {
*aggregate_instance = _PyObject_CallNoArg(aggregate_class);
if (PyErr_Occurred()) {