]> granicus.if.org Git - python/commit
Backport of r51379 from trunk:
authorThomas Heller <theller@ctypes.org>
Wed, 6 Sep 2006 17:48:56 +0000 (17:48 +0000)
committerThomas Heller <theller@ctypes.org>
Wed, 6 Sep 2006 17:48:56 +0000 (17:48 +0000)
commit291a1b89c6d09a7b54c50bffefb089dadc78f81c
tree784c27ad9a5dc582dc0fe7fde48f0380c7b49c34
parentecab623e1315cd0cfbe01e046e618001fe315490
Backport of r51379 from trunk:

Add asserts to check for 'impossible' NULL values, with comments.
In one place where I'm not 1000% sure about the non-NULL, raise
a RuntimeError for safety.

This should fix the klocwork issues that Neal sent me.  If so,
it should be applied to the release25-maint branch also.
Modules/_ctypes/_ctypes.c