Update common/common.cpp

Co-authored-by: slaren <slarengh@gmail.com>
This commit is contained in:
Johannes Gäßler 2024-06-20 16:23:41 +02:00 committed by GitHub
parent c4a14e8150
commit 8d7034fda9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2663,7 +2663,7 @@ static bool llama_download_file(const std::string & url, const std::string & pat
}
};
std::unique_ptr<FILE, FILE_deleter> outfile(fopen(path_temporary.c_str(), "wb"), FILE_deleter());
std::unique_ptr<FILE, FILE_deleter> outfile(fopen(path_temporary.c_str(), "wb"));
if (!outfile) {
fprintf(stderr, "%s: error opening local file for writing: %s\n", __func__, path.c_str());
return false;