summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSutou Kouhei <kou@clear-code.com>2020-06-27 07:11:19 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-06-27 23:54:08 +0900
commit9f740acaf960c0d8fa4b72050f057bc157db31ce (patch)
tree66339ed99c8ab35386419ca2905e9237104cd8e8
parent50fbd00e76f2a7a6ed17e73605fa69ce80cafb01 (diff)
[ruby/fiddle] Use meaningful variable name
https://github.com/ruby/fiddle/commit/2cac24b7c8
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3265
-rw-r--r--ext/fiddle/function.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/fiddle/function.c b/ext/fiddle/function.c
index 95648d3c96..bd6c9bd60d 100644
--- a/ext/fiddle/function.c
+++ b/ext/fiddle/function.c
@@ -31,9 +31,9 @@ VALUE cFiddleFunction;
static void
deallocate(void *p)
{
- ffi_cif *ptr = p;
- if (ptr->arg_types) xfree(ptr->arg_types);
- xfree(ptr);
+ ffi_cif *cif = p;
+ if (cif->arg_types) xfree(cif->arg_types);
+ xfree(cif);
}
static size_t