Kaydet (Commit) c10aa77c authored tarafından Guido van Rossum's avatar Guido van Rossum

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

üst 741c81a5
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment