Don't clobber fd (#1966).
CVS patchset: 2941 CVS date: 1999/04/04 16:56:53
This commit is contained in:
parent
c2ace2da95
commit
114d2630ad
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue