]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove bogus type-and-refcnt setting from newsizedstringobject().
authorGuido van Rossum <guido@python.org>
Thu, 3 Sep 1992 20:44:02 +0000 (20:44 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 3 Sep 1992 20:44:02 +0000 (20:44 +0000)
Objects/stringobject.c

index b494f96c4d928aa502bbb4ac9c60c40dd2516116..9f8de920b243c8ee1c8d8981a4d3e290f9bcf929 100644 (file)
@@ -132,9 +132,6 @@ stringrepr(op)
                register int i;
                register char c;
                register char *p;
-               NEWREF(v);
-               v->ob_type = &Stringtype;
-               ((stringobject *)v)->ob_size = newsize;
                p = ((stringobject *)v)->ob_sval;
                *p++ = '\'';
                for (i = 0; i < op->ob_size; i++) {