From d2eb51b3092755b23dde4e1d976605fda0120e39 Mon Sep 17 00:00:00 2001 From: kramm Date: Mon, 9 Jun 2008 10:22:56 +0000 Subject: [PATCH] added missing check --- installer/archive.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/installer/archive.c b/installer/archive.c index 888cd36..c24c026 100644 --- a/installer/archive.c +++ b/installer/archive.c @@ -371,6 +371,10 @@ int unpack_archive(void*data, int len, char*destdir, statusfunc_t f) #else reader_t*z = reader_init_lzma(data, len); #endif + if(!z) { + f(1, "Couldn't decompress installation files"); + return 0; + } f(0, "Creating installation directory"); if(!create_directory(destdir,f)) return 0; -- 1.7.10.4