mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
fileobject.c: fix fatal bug in getline() (forgot to initialize fp now)
This commit is contained in:
parent
741c81a51f
commit
c10aa77cb9
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue