]> granicus.if.org Git - php/commitdiff
Fix double incremenation in ffi
authorPeter Kokot <peterkokot@gmail.com>
Sun, 5 May 2019 15:51:08 +0000 (17:51 +0200)
committerDmitry Stogov <dmitry@zend.com>
Mon, 6 May 2019 06:45:11 +0000 (09:45 +0300)
This removes the warning of:
`incremented both in the loop header and in the loop body` in the
compilation step.

ext/ffi/ffi.c

index 0e0803adca607e5138e8452dbab070a0a282f8c0..a0603086c51bb3121cda1b2520db2d08cdb1d5ed 100644 (file)
@@ -780,7 +780,6 @@ static void zend_ffi_callback_trampoline(ffi_cif* cif, void* ret, void** args, v
 
                for (n = 0; n < callback_data->arg_count; n++) {
                        zval_ptr_dtor(&fci.params[n]);
-                       n++;
                }
        }
        free_alloca(fci.params, use_heap);