mirror of
https://github.com/curl/curl.git
synced 2026-04-15 06:41:42 +03:00
ANSI C compatibility fix
This commit is contained in:
parent
20723cb792
commit
2bcd13aaee
1 changed files with 2 additions and 1 deletions
|
|
@ -333,7 +333,8 @@ static CURLcode file_upload(struct connectdata *conn)
|
|||
failf(data, "Can't open %s for writing", file->path);
|
||||
return CURLE_WRITE_ERROR;
|
||||
}
|
||||
fp = fdopen(fd, "wb");
|
||||
close(fd);
|
||||
fp = fopen(file->path, "wb");
|
||||
}
|
||||
|
||||
if(!fp) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue