Mercurial > cpython-lru_cache-weakref
diff Objects/typeobject.c @ 24862:5b656c3e132b legacy-trunk
Fix SF bug 595838 -- buffer in type_new() should not be static. Moved
to inner scope, too.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 16 Aug 2002 03:47:49 +0000 |
| parents | c001e5a15369 |
| children | 255d1d3e66a3 |
line wrap: on
line diff
--- a/Objects/typeobject.c Fri Aug 16 03:41:39 2002 +0000 +++ b/Objects/typeobject.c Fri Aug 16 03:47:49 2002 +0000 @@ -1008,7 +1008,6 @@ { PyObject *name, *bases, *dict; static char *kwlist[] = {"name", "bases", "dict", 0}; - static char buffer[256]; PyObject *slots, *tmp, *newslots; PyTypeObject *type, *base, *tmptype, *winner; etype *et; @@ -1171,6 +1170,7 @@ goto bad_slots; for (i = j = 0; i < nslots; i++) { char *s; + char buffer[256]; tmp = PyTuple_GET_ITEM(slots, i); s = PyString_AS_STRING(tmp); if ((add_dict && strcmp(s, "__dict__") == 0) ||
