This can not be true

This commit is contained in:
Xinchen Hui 2015-07-02 11:04:24 +08:00
parent 06fcf94c45
commit fc58025627

View File

@ -1012,9 +1012,6 @@ PHPAPI PHP_FUNCTION(fgets)
/* ask streams to give us a buffer of an appropriate size */
buf = php_stream_get_line(stream, NULL, 0, &line_len);
if (buf == NULL) {
if (buf) {
efree(buf);
}
RETURN_FALSE;
}
// TODO: avoid reallocation ???