gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r11729 - Extractor/src/common


From: gnunet
Subject: [GNUnet-SVN] r11729 - Extractor/src/common
Date: Sun, 13 Jun 2010 16:48:23 +0200

Author: grothoff
Date: 2010-06-13 16:48:23 +0200 (Sun, 13 Jun 2010)
New Revision: 11729

Modified:
   Extractor/src/common/unzip.c
Log:
null check

Modified: Extractor/src/common/unzip.c
===================================================================
--- Extractor/src/common/unzip.c        2010-06-13 14:46:52 UTC (rev 11728)
+++ Extractor/src/common/unzip.c        2010-06-13 14:48:23 UTC (rev 11729)
@@ -661,6 +661,11 @@
 
 
     s=(unz_s*)ALLOC(sizeof(unz_s));
+    if (s == NULL) 
+    {
+       ZCLOSE(us.z_filefunc, us.filestream);
+       return NULL;
+    }
     *s=us;
     EXTRACTOR_common_unzip_go_to_first_file((EXTRACTOR_unzip_file)s);
     return (EXTRACTOR_unzip_file)s;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]