fileobject.c: fix fatal bug in getline() (forgot to initialize fp now)

This commit is contained in:
Guido van Rossum 1992-07-31 12:42:38 +00:00
parent 741c81a51f
commit c10aa77cb9
1 changed files with 1 additions and 0 deletions

View File

@ -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)