diff options
author | Guido van Rossum <guido@python.org> | 1992-07-31 12:42:38 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-07-31 12:42:38 (GMT) |
commit | c10aa77cb9b4cefe99349b5ae0752d4ed2058322 (patch) | |
tree | 67fe4d695dbd7eddfa7fb707f25e4cfb74d74159 /Objects/fileobject.c | |
parent | 741c81a51f9762a9e61b900d78038d3380e51429 (diff) | |
download | cpython-c10aa77cb9b4cefe99349b5ae0752d4ed2058322.zip cpython-c10aa77cb9b4cefe99349b5ae0752d4ed2058322.tar.gz cpython-c10aa77cb9b4cefe99349b5ae0752d4ed2058322.tar.bz2 |
fileobject.c: fix fatal bug in getline() (forgot to initialize fp now)
Diffstat (limited to 'Objects/fileobject.c')
-rw-r--r-- | Objects/fileobject.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 @@ getline(f, n) int n1, n2; object *v; + fp = f->f_fp; n2 = n > 0 ? n : 100; v = newsizedstringobject((char *)NULL, n2); if (v == NULL) |