parent
0cc4720cb8
commit
f48e1b1574
|
@ -376,7 +376,7 @@ static int fgetline(char **buf, int *size, FILE *fp)
|
|||
int len;
|
||||
int c;
|
||||
|
||||
if (fp == NULL)
|
||||
if (fp == NULL || buf == NULL)
|
||||
return -1;
|
||||
|
||||
if (*buf == NULL) {
|
||||
|
|
Loading…
Reference in New Issue