diff options
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/network_content.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/network_content.cpp b/src/network/network_content.cpp index e6e91897c..047269969 100644 --- a/src/network/network_content.cpp +++ b/src/network/network_content.cpp @@ -404,6 +404,8 @@ static bool GunzipFile(const ContentInfo *ci) #if defined(WITH_ZLIB) bool ret = true; FILE *ftmp = fopen(GetFullFilename(ci, true), "rb"); + if (ftmp == NULL) return false; + gzFile fin = gzdopen(fileno(ftmp), "rb"); FILE *fout = fopen(GetFullFilename(ci, false), "wb"); |