diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2020-01-05 11:36:10 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2020-01-05 11:39:35 +0900 |
commit | 44a164c26f5371519636585d8ba7aa59f489442e (patch) | |
tree | 459c6422cdecb89ba6666acc5492a299614661c2 /include | |
parent | c7f01d889becbeffc4254e1b0b7faecb80ea3f3e (diff) | |
download | ruby-44a164c26f5371519636585d8ba7aa59f489442e.tar.gz |
include/ruby/ruby.h: remove a variable tmp_buffer as it does not change
It is no longer used due to beae6cbf0fd8b6619e5212552de98022d4c4d4d4.
Coverity Scan found this.
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/ruby.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 56e293b010..625636fcdc 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -2520,7 +2520,6 @@ rb_scan_args_set(int argc, const VALUE *argv, int i, argi = 0, vari = 0; VALUE *var, hash = Qnil, last_hash = 0; const int n_mand = n_lead + n_trail; - VALUE tmp_buffer = 0; if (f_hash && argc > 0 && rb_keyword_given_p()) { hash = rb_hash_dup(argv[argc - 1]); @@ -2589,11 +2588,9 @@ rb_scan_args_set(int argc, const VALUE *argv, if (argi < argc) { argc_error: - if (tmp_buffer) rb_free_tmp_buffer(&tmp_buffer); rb_error_arity(argc, n_mand, f_var ? UNLIMITED_ARGUMENTS : n_mand + n_opt); } - if (tmp_buffer) rb_free_tmp_buffer(&tmp_buffer); return argc; } #endif |