From: Zachary Ware Date: Tue, 4 Oct 2016 06:20:21 +0000 (-0500) Subject: Closes #21124, #28337: Call PyType_Ready on unpackiter_type. X-Git-Tag: v3.7.0a1~2309^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=99f11b48cd66fafb65773d41a77a0a011ad04a96;p=thirdparty%2FPython%2Fcpython.git Closes #21124, #28337: Call PyType_Ready on unpackiter_type. Patch by Masayuki Yamamoto. --- diff --git a/Modules/_struct.c b/Modules/_struct.c index 9d48691c8a96..1d7a935ac8c4 100644 --- a/Modules/_struct.c +++ b/Modules/_struct.c @@ -2301,6 +2301,9 @@ PyInit__struct(void) if (PyType_Ready(&PyStructType) < 0) return NULL; + if (PyType_Ready(&unpackiter_type) < 0) + return NULL; + /* Check endian and swap in faster functions */ { const formatdef *native = native_table;