From 114d2630ad6a4d3786f1a4dbd0bfabeb3929bdc4 Mon Sep 17 00:00:00 2001 From: jbj Date: Sun, 4 Apr 1999 16:56:53 +0000 Subject: [PATCH] Don't clobber fd (#1966). CVS patchset: 2941 CVS date: 1999/04/04 16:56:53 --- popt/poptconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/popt/poptconfig.c b/popt/poptconfig.c index 8f2656d..fce6d74 100644 --- a/popt/poptconfig.c +++ b/popt/poptconfig.c @@ -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; -- 2.7.4