2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
authorSimon Josefsson <simon@josefsson.org>
Wed, 21 Jun 2006 08:02:40 +0000 (08:02 +0000)
committerSimon Josefsson <simon@josefsson.org>
Wed, 21 Jun 2006 08:02:40 +0000 (08:02 +0000)
commit7a8df33d7bb42eaff21c657ba88a79c5a293b0e5
tree957d3904cc97995200bd982b7a0050945f050dc4
parent8eacc6e87ef59621f773289ca13733d05873a94f
2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>

* read-file.c (fread_file): Start with buffer allocation of
0 bytes rather than 1 byte; this simplifies the code.
Don't invoke feof; it's not needed.  Refactor to avoid duplicate
code to free buffer and save/restore errno.
(internal_read_file): Remove unused local.
lib/ChangeLog
lib/read-file.c