mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05: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