]> granicus.if.org Git - python/commitdiff
Fix another bug found by Coverty.
authorThomas Heller <theller@ctypes.org>
Mon, 20 Mar 2006 08:29:28 +0000 (08:29 +0000)
committerThomas Heller <theller@ctypes.org>
Mon, 20 Mar 2006 08:29:28 +0000 (08:29 +0000)
Modules/_ctypes/callproc.c

index c019af7be676db40cf1fc3dcacbfadd6dc2d63f5..74e0ae50766cc02bf40308913ecd789656fd2ac4 100644 (file)
@@ -1363,7 +1363,7 @@ static int
 converter(PyObject *obj, void **address)
 {
        *address = PyLong_AsVoidPtr(obj);
-       return address != NULL;
+       return *address != NULL;
 }
 
 static PyObject *