mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
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.
This commit is contained in:
parent
aefa7ebf0f
commit
0b3ec19225
8 changed files with 15 additions and 15 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue