commit | c10aa77cb9b4cefe99349b5ae0752d4ed2058322 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Jul 31 12:42:38 1992 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Jul 31 12:42:38 1992 +0000 |
tree | 67fe4d695dbd7eddfa7fb707f25e4cfb74d74159 | |
parent | 741c81a51f9762a9e61b900d78038d3380e51429 [diff] [blame] |
fileobject.c: fix fatal bug in getline() (forgot to initialize fp now)
diff --git a/Objects/fileobject.c b/Objects/fileobject.c index d9162bb..b026413 100644 --- a/Objects/fileobject.c +++ b/Objects/fileobject.c
@@ -327,6 +327,7 @@ int n1, n2; object *v; + fp = f->f_fp; n2 = n > 0 ? n : 100; v = newsizedstringobject((char *)NULL, n2); if (v == NULL)