From 89f06ce8b8a887f12b53ea190d79a58e98b59008 Mon Sep 17 00:00:00 2001 From: nagachika Date: Sat, 25 Jul 2020 12:00:39 +0900 Subject: merge revision(s) 08529a61153e5c40f57a65272211357511d6e6db: [Backport #16798] Compare environment variable names in those manor [Bug #16798] --- hash.c | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'hash.c') diff --git a/hash.c b/hash.c index b546f6246b..dd78d2d8e1 100644 --- a/hash.c +++ b/hash.c @@ -6106,13 +6106,29 @@ env_invert(VALUE _) return rb_hash_invert(env_to_hash()); } +static void +keylist_delete(VALUE keys, VALUE key) +{ + long keylen, elen; + const char *keyptr, *eptr; + RSTRING_GETMEM(key, keyptr, keylen); + for (long i=0; i