mirror of https://github.com/python/cpython
fileobject.c: fix fatal bug in getline() (forgot to initialize fp now)
This commit is contained in:
parent
741c81a51f
commit
c10aa77cb9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue