[Python-checkins] [python/cpython] 0b3ec1: Use NULL rather than 0. (#778)

GitHub noreply at github.com
Thu Mar 23 11:53:49 EDT 2017


  Branch: refs/heads/master
  Home:   https://github.com/python/cpython
  Commit: 0b3ec192259a65971001ce8f0de85a9c1e71d9c7
      https://github.com/python/cpython/commit/0b3ec192259a65971001ce8f0de85a9c1e71d9c7
  Author: Serhiy Storchaka <storchaka at gmail.com>
  Date:   2017-03-23 (Thu, 23 Mar 2017)

  Changed paths:
    M Modules/_csv.c
    M Modules/_ctypes/callproc.c
    M Modules/_cursesmodule.c
    M Modules/_sqlite/connection.c
    M Modules/_sqlite/module.c
    M Modules/_tkinter.c
    M PC/bdist_wininst/install.c
    M Parser/listnode.c

  Log Message:
  -----------
  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.




More information about the Python-checkins mailing list