Imported Upstream version 1.3.0
[platform/upstream/libzip.git] / lib / zip_unchange_all.c
index 2221d6c..39754b2 100644 (file)
@@ -43,7 +43,9 @@ zip_unchange_all(zip_t *za)
     int ret;
     zip_uint64_t i;
 
-    _zip_hash_revert(za->names);
+    if (!_zip_hash_revert(za->names, &za->error)) {
+        return -1;
+    }
     
     ret = 0;
     for (i=0; i<za->nentry; i++)