summaryrefslogtreecommitdiffstats
path: root/Objects/fileobject.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-07-31 12:42:38 (GMT)
committerGuido van Rossum <guido@python.org>1992-07-31 12:42:38 (GMT)
commitc10aa77cb9b4cefe99349b5ae0752d4ed2058322 (patch)
tree67fe4d695dbd7eddfa7fb707f25e4cfb74d74159 /Objects/fileobject.c
parent741c81a51f9762a9e61b900d78038d3380e51429 (diff)
downloadcpython-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.c1
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)