com php-src: Fix double incremenation in ffi: ext/ffi/ffi.c
| From: | Dmitry Stogov | Date: | Mon, 06 May 2019 06:45:11 +0000 |
| Subject: | com php-src: Fix double incremenation in ffi: ext/ffi/ffi.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-106041@lists.php.net to get a copy of this message | ||
Commit: 426bcdf02120604cc13d9af9f161aec4307a2249
Author: Peter Kokot <peterkokot@gmail.com> Sun, 5 May 2019 17:51:08 +0200
Committer: Dmitry Stogov <dmitry@zend.com> Mon, 6 May 2019 09:45:11 +0300
Parents: c025cf47c00ed5db086c69ed76dc88ca4238255e
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=426bcdf02120604cc13d9af9f161aec4307a2249
Log:
Fix double incremenation in ffi
This removes the warning of:
incremented both in the loop header and in the loop body in the
compilation step.
Changed paths:
M ext/ffi/ffi.c
Diff:
diff --git a/ext/ffi/ffi.c b/ext/ffi/ffi.c
index 0e0803a..a060308 100644
--- a/ext/ffi/ffi.c
+++ b/ext/ffi/ffi.c
@@ -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);