Update common/common.cpp

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
This commit is contained in:
Pierrick Hymbert 2024-03-16 17:46:53 +01:00 committed by GitHub
parent 8751bd0c82
commit f53bfd56af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1735,7 +1735,7 @@ struct llama_model *llama_load_model_from_url(const char *model_url, const char
// If only the ETag or the Last-Modified header are different, trigger a new download
if (strcmp(etag, headers.etag) != 0 || strcmp(last_modified, headers.last_modified) != 0) {
// Set the output file
auto *outfile = fopen(path_model, "wb");
auto * outfile = fopen(path_model, "wb");
if (!outfile) {
curl_easy_cleanup(curl);
curl_global_cleanup();