mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
ANSI C compatibility fix
This commit is contained in:
parent
20723cb792
commit
2bcd13aaee
@ -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…
Reference in New Issue
Block a user