]> granicus.if.org Git - php/commitdiff
- Fix warning
authorMarcus Boerger <helly@php.net>
Sat, 27 Jan 2007 21:37:22 +0000 (21:37 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 27 Jan 2007 21:37:22 +0000 (21:37 +0000)
ext/phar/phar_object.c

index e875724b6d8baddba16ae0821bbef6d00af8dbd9..2504462384f122ec85596950340c47a7ce8899c0 100755 (executable)
@@ -300,19 +300,18 @@ static int phar_set_compression(void *pDest, void *argument TSRMLS_DC) /* {{{ */
 static int phar_test_compression(void *pDest, void *argument TSRMLS_DC) /* {{{ */
 {
        phar_entry_info *entry = (phar_entry_info *)pDest;
-       int *result = (int *) argument;
 
        if (entry->is_deleted) {
                return ZEND_HASH_APPLY_KEEP;
        }
 #if !HAVE_BZ2
        if (entry->flags & PHAR_ENT_COMPRESSED_BZ2) {
-               *result = 0;
+               *(int *) argument = 0;
        }
 #endif
 #if !HAVE_ZLIB
        if (entry->flags & PHAR_ENT_COMPRESSED_GZ) {
-               *result = 0;
+               *(int *) argument = 0;
        }
 #endif
        return ZEND_HASH_APPLY_KEEP;