mirror of
https://github.com/curl/curl.git
synced 2025-02-23 15:10:03 +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);
|
failf(data, "Can't open %s for writing", file->path);
|
||||||
return CURLE_WRITE_ERROR;
|
return CURLE_WRITE_ERROR;
|
||||||
}
|
}
|
||||||
fp = fdopen(fd, "wb");
|
close(fd);
|
||||||
|
fp = fopen(file->path, "wb");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!fp) {
|
if(!fp) {
|
||||||
|
Loading…
Reference in New Issue
Block a user