Create code string with initial size of 1000 instead of 0.

This commit is contained in:
Guido van Rossum 1991-04-03 19:00:23 +00:00
parent b8824952cb
commit 62d4624ea3

View file

@ -162,7 +162,7 @@ com_init(c, filename)
struct compiling *c; struct compiling *c;
char *filename; char *filename;
{ {
if ((c->c_code = newsizedstringobject((char *)NULL, 0)) == NULL) if ((c->c_code = newsizedstringobject((char *)NULL, 1000)) == NULL)
goto fail_3; goto fail_3;
if ((c->c_consts = newlistobject(0)) == NULL) if ((c->c_consts = newlistobject(0)) == NULL)
goto fail_2; goto fail_2;