[Python-checkins] r43168 - python/trunk/Modules/_ctypes/callproc.c

thomas.heller python-checkins at python.org
Mon Mar 20 09:29:31 CET 2006


Author: thomas.heller
Date: Mon Mar 20 09:29:28 2006
New Revision: 43168

Modified:
   python/trunk/Modules/_ctypes/callproc.c
Log:
Fix another bug found by Coverty.

Modified: python/trunk/Modules/_ctypes/callproc.c
==============================================================================
--- python/trunk/Modules/_ctypes/callproc.c	(original)
+++ python/trunk/Modules/_ctypes/callproc.c	Mon Mar 20 09:29:28 2006
@@ -1363,7 +1363,7 @@
 converter(PyObject *obj, void **address)
 {
 	*address = PyLong_AsVoidPtr(obj);
-	return address != NULL;
+	return *address != NULL;
 }
 
 static PyObject *


More information about the Python-checkins mailing list