summaryrefslogtreecommitdiff
path: root/ext/ffi_c/libffi/testsuite/libffi.call/err_bad_typedef.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ffi_c/libffi/testsuite/libffi.call/err_bad_typedef.c')
-rw-r--r--ext/ffi_c/libffi/testsuite/libffi.call/err_bad_typedef.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/ffi_c/libffi/testsuite/libffi.call/err_bad_typedef.c b/ext/ffi_c/libffi/testsuite/libffi.call/err_bad_typedef.c
index 2539273..bf60161 100644
--- a/ext/ffi_c/libffi/testsuite/libffi.call/err_bad_typedef.c
+++ b/ext/ffi_c/libffi/testsuite/libffi.call/err_bad_typedef.c
@@ -13,10 +13,10 @@ int main (void)
ffi_cif cif;
ffi_type* arg_types[1];
- arg_types[0] = NULL;
-
ffi_type badType = ffi_type_void;
+ arg_types[0] = NULL;
+
badType.size = 0;
CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 0, &badType,