]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Create code string with initial size of 1000 instead of 0.
authorGuido van Rossum <guido@python.org>
Wed, 3 Apr 1991 19:00:23 +0000 (19:00 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 3 Apr 1991 19:00:23 +0000 (19:00 +0000)
Python/compile.c

index 1c3f2facb2fceafcc30468ee359d9dc843bcff97..b61658e350429ab0ac306ad5786bb84dcdd3ea74 100644 (file)
@@ -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;