ANSI C compatibility fix

This commit is contained in:
Yang Tse 2008-09-12 03:24:27 +00:00
parent 20723cb792
commit 2bcd13aaee

View File

@ -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) {