projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2ace2d
)
Don't clobber fd (#1966).
author
jbj
<devnull@localhost>
Sun, 4 Apr 1999 16:56:53 +0000
(16:56 +0000)
committer
jbj
<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
patch
|
blob
|
history
diff --git
a/popt/poptconfig.c
b/popt/poptconfig.c
index
8f2656d
..
fce6d74
100644
(file)
--- 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;