From c10aa77cb9b4cefe99349b5ae0752d4ed2058322 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 31 Jul 1992 12:42:38 +0000 Subject: fileobject.c: fix fatal bug in getline() (forgot to initialize fp now) --- Objects/fileobject.c | 1 + 1 file changed, 1 insertion(+) 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) -- cgit v0.12