From: Thomas Heller Date: Mon, 14 Aug 2006 07:13:05 +0000 (+0000) Subject: Remove unused, buggy test function. X-Git-Tag: v2.5c1~48 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=acdedfbf0ac787de07ff1bf36e935ce1230db530;p=thirdparty%2FPython%2Fcpython.git Remove unused, buggy test function. Fixes klockwork issue #207. --- diff --git a/Modules/_ctypes/_ctypes_test.c b/Modules/_ctypes/_ctypes_test.c index 99cc7a963487..7331d01dcd53 100644 --- a/Modules/_ctypes/_ctypes_test.c +++ b/Modules/_ctypes/_ctypes_test.c @@ -197,18 +197,6 @@ EXPORT(PY_LONG_LONG) _testfunc_callback_q_qf(PY_LONG_LONG value, #endif -EXPORT(int) _testfunc_ppp(char ***p) -{ - static char message[] = "Hello, World"; - if (p) { - *p = (char **)malloc(sizeof(char *)); - printf("malloc returned %p\n", *p); - **p = message; - return 1; - } - return 0; -} - typedef struct { char *name; char *value;