summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-01-27 06:20:08 +0000
committerTim Peters <tim.peters@gmail.com>2001-01-27 06:20:08 +0000
commitd3f57e5e8167d67b846e1a30be888ac71117916d (patch)
tree2e9f9a45c9f00d6f7282b5d1dc0b061a7dd1e9c6 /Python
parent5f6cfe62d1d5a857d2a9e68acc6e266b1841bbcd (diff)
downloadcpython-d3f57e5e8167d67b846e1a30be888ac71117916d.tar.gz
SF bug http://sourceforge.net/bugs/?func=detailbug&bug_id=130242&group_id=5470
SF patch http://sourceforge.net/patch/?func=detailpatch&patch_id=103453&group_id=5470 PyMember_Set of T_CHAR always raises exception. Unfortunately, this is a use of a C API function that Python itself never makes, so there's no .py test I can check in to verify this stays fixed. But the fault in the code is obvious, and Dave Cole's patch just as obviously fixes it.
Diffstat (limited to 'Python')
-rw-r--r--Python/structmember.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/structmember.c b/Python/structmember.c
index bc1ba251ac..e155a6b49f 100644
--- a/Python/structmember.c
+++ b/Python/structmember.c
@@ -231,6 +231,7 @@ PyMember_Set(char *addr, struct memberlist *mlist, char *name, PyObject *v)
PyErr_BadArgument();
return -1;
}
+ break;
default:
PyErr_SetString(PyExc_SystemError,
"bad memberlist type");