From 62d4624ea39b25a1b76d354486a52ef653a4aec0 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 3 Apr 1991 19:00:23 +0000 Subject: [PATCH] Create code string with initial size of 1000 instead of 0. --- Python/compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/compile.c b/Python/compile.c index 1c3f2facb2f..b61658e3504 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -162,7 +162,7 @@ com_init(c, filename) struct compiling *c; char *filename; { - if ((c->c_code = newsizedstringobject((char *)NULL, 0)) == NULL) + if ((c->c_code = newsizedstringobject((char *)NULL, 1000)) == NULL) goto fail_3; if ((c->c_consts = newlistobject(0)) == NULL) goto fail_2;