From: Thomas Heller <theller@ctypes.org>
Date: Mon, 20 Mar 2006 08:29:28 +0000 (+0000)
Subject: Fix another bug found by Coverty.
X-Git-Tag: v2.5a0~156
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=711e7f00ca96e3999458d0fa859f2ff763fdbc0e;p=python

Fix another bug found by Coverty.
---

diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c
index c019af7be6..74e0ae5076 100644
--- a/Modules/_ctypes/callproc.c
+++ b/Modules/_ctypes/callproc.c
@@ -1363,7 +1363,7 @@ static int
 converter(PyObject *obj, void **address)
 {
 	*address = PyLong_AsVoidPtr(obj);
-	return address != NULL;
+	return *address != NULL;
 }
 
 static PyObject *