Don't clobber fd (#1966).
authorjbj <devnull@localhost>
Sun, 4 Apr 1999 16:56:53 +0000 (16:56 +0000)
committerjbj <devnull@localhost>
Sun, 4 Apr 1999 16:56:53 +0000 (16:56 +0000)
CVS patchset: 2941
CVS date: 1999/04/04 16:56:53

popt/poptconfig.c

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