Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CAGE] libffi: Initialize nci_arg_ptr if !nci->arity
clang 3.1 svn160959 properly caught: src/nci/libffi.c:543:9: warning: variable 'nci_arg_ptr' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] if (nci->arity) { ^~~~~~~~~~ src/nci/libffi.c:645:64: note: uninitialized use occurs here ffi_call(&thunk->cif, FFI_FN(nci->orig_func), return_data, nci_arg_ptr); ^~~~~~~~~~~ src/nci/libffi.c:543:5: note: remove the 'if' if its condition is always true if (nci->arity) { ^~~~~~~~~~~~~~~~ src/nci/libffi.c:483:31: note: initialize the variable 'nci_arg_ptr' to silence this warning void **nci_arg_ptr; /* pointers to arguments for libffi */ ^ = NULL
- Loading branch information