projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8095b77
)
don't close stdin, close the actual file handle we have!
author
Daniel Stenberg
<daniel@haxx.se>
Mon, 26 Aug 2002 11:58:18 +0000
(11:58 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Mon, 26 Aug 2002 11:58:18 +0000
(11:58 +0000)
Keith MacDonald found it.
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index a7533a00ffc6edafc3478a7a0e0d07e59adc0b47..956cb861afc6fc44e33e62aae4cecaa66c8f8dbc 100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-1318,7
+1318,7
@@
static ParameterError getparameter(char *flag, /* f or -long-flag */
else
postdata = file2string(file);
if(file && (file != stdin))
- fclose(
stdin
);
+ fclose(
file
);
}
else {
GetStr(&postdata, nextarg);
@@
-1626,7
+1626,7
@@
static ParameterError getparameter(char *flag, /* f or -long-flag */
file = fopen(nextarg, "r");
config->writeout = file2string(file);
if(file && (file != stdin))
- fclose(
stdin
);
+ fclose(
file
);
}
else
GetStr(&config->writeout, nextarg);