(FT_Stream_Open): Check errno only if read system call returns -1.

Remove a redundant parenthesis.
This commit is contained in:
Yamato, Masatake (大和正武) 2006-05-11 03:01:42 +00:00
parent 37827608c2
commit 28b55a9bb6
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2006-05-11 Masatake YAMATO <jet@gyve.org>
* builds/unix/ftsystem.c (FT_Stream_Open): Check errno only if
read system call returns -1.
Remove a redundant parenthesis.
2006-05-10 Werner Lemberg <wl@gnu.org>
* builds/unix/ftsystem.c (FT_Stream_Open): Avoid infinite loop if

View File

@ -303,9 +303,9 @@
stream->base + total_read_count,
stream->size - total_read_count );
if ( ( read_count <= 0 ) )
if ( read_count <= 0 )
{
if ( errno == EINTR )
if ( read_count == -1 && errno == EINTR )
continue;
FT_ERROR(( "FT_Stream_Open:" ));