diff Python/structmember.c @ 16295:7b3476c1382e legacy-trunk

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.
author Tim Peters <tim.peters@gmail.com>
date Sat, 27 Jan 2001 06:20:08 +0000
parents 6f6f965c5e2d
children 8522b022f80a
line wrap: on
line diff
--- a/Python/structmember.c	Sat Jan 27 05:35:26 2001 +0000
+++ b/Python/structmember.c	Sat Jan 27 06:20:08 2001 +0000
@@ -231,6 +231,7 @@
 					PyErr_BadArgument();
 					return -1;
 				}
+				break;
 			default:
 				PyErr_SetString(PyExc_SystemError,
 						"bad memberlist type");