Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
dtschump committed May 11, 2024
2 parents 1a4b82a + e2ca0a4 commit 84a1ae6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions CImg.h
Original file line number Diff line number Diff line change
Expand Up @@ -68285,6 +68285,7 @@ namespace cimg_library {
cimg::temporary_path(),cimg_file_separator,cimg::filenamerand(),ext._data);
if ((file = cimg::std_fopen(filename_local,"rb"))!=0) cimg::fclose(file);
} while (file);
file = 0;

#ifdef cimg_use_curl
const unsigned int omode = cimg::exception_mode();
Expand All @@ -68311,10 +68312,9 @@ namespace cimg_library {
cimg::fseek(file,0,SEEK_END); // Check if file size is 0
const cimg_ulong siz = cimg::ftell(file);
cimg::fclose(file);
if (siz>0 && res==CURLE_OK) {
cimg::exception_mode(omode);
return filename_local;
} else std::remove(filename_local);
file = 0;
if (siz>0 && res==CURLE_OK) { cimg::exception_mode(omode); return filename_local; }
else std::remove(filename_local);
}
} catch (...) { }
cimg::exception_mode(omode);
Expand Down Expand Up @@ -68373,7 +68373,6 @@ namespace cimg_library {
#else
"'wget' or 'curl'.",url);
#endif
cimg::fclose(file);

// Try gunzip it.
cimg_snprintf(command,command._width,"%s.gz",filename_local);
Expand Down
2 changes: 1 addition & 1 deletion html/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<div class="header">
<a href="index.html"><img alt="Logo" src="img/logo_header.jpg" class="center_image" style="margin-top:1em;"/></a>
<h2 style="padding-bottom: 1em">
Latest stable version: <b><a href="http://cimg.eu/files/CImg_.zip">3.3.5</a></b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Current pre-release: <b><a href="http://cimg.eu/files/CImg_latest.zip">3.3.6</a></b> (2024/05/06)
Latest stable version: <b><a href="http://cimg.eu/files/CImg_.zip">3.3.5</a></b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Current pre-release: <b><a href="http://cimg.eu/files/CImg_latest.zip">3.3.6</a></b> (2024/05/10)
</h2>

<hr/>
Expand Down
2 changes: 1 addition & 1 deletion html/header_doxygen.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="header">
<a href="../index.html"><img alt="Logo" src="../img/logo_header.jpg" class="center_image" style="margin-top:1em;"/></a>
<h2 style="padding-bottom: 1em">
Latest stable version: <b><a href="http://cimg.eu/files/CImg_.zip">3.3.5</a></b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Current pre-release: <b><a href="http://cimg.eu/files/CImg_latest.zip">3.3.6</a></b> (2024/05/06)
Latest stable version: <b><a href="http://cimg.eu/files/CImg_.zip">3.3.5</a></b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Current pre-release: <b><a href="http://cimg.eu/files/CImg_latest.zip">3.3.6</a></b> (2024/05/10)
</h2>

<hr/>
Expand Down

0 comments on commit 84a1ae6

Please sign in to comment.