Don't clobber fd (#1966).

CVS patchset: 2941
CVS date: 1999/04/04 16:56:53
This commit is contained in:
jbj 1999-04-04 16:56:53 +00:00
parent c2ace2da95
commit 114d2630ad
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ int poptReadConfigFile(poptContext con, char * fn) {
lseek(fd, 0, 0); lseek(fd, 0, 0);
file = alloca(fileLength + 1); file = alloca(fileLength + 1);
if ((fd = read(fd, file, fileLength)) != fileLength) { if (read(fd, file, fileLength) != fileLength) {
rc = errno; rc = errno;
close(fd); close(fd);
errno = rc; errno = rc;