diff options
author | Nobuyoshi Nakada <[email protected]> | 2021-07-21 12:06:16 +0900 |
---|---|---|
committer | Koichi Sasada <[email protected]> | 2021-12-15 15:04:34 +0900 |
commit | f471cf295bf093d51b6258338d5e7add0ce962b4 (patch) | |
tree | e8f4209faccf619e389f0b8dcddef081b0d806ff /hash.c | |
parent | 3aab870761ff0138ffd29e0a08b6cdf151e2acb4 (diff) |
Symbols closed to env should be static
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5263
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4810,9 +4810,9 @@ extern char **environ; #define ENVNMATCH(s1, s2, n) (memcmp((s1), (s2), (n)) == 0) #endif -rb_nativethread_lock_t env_lock; +static rb_nativethread_lock_t env_lock; -const char* +static const char* getenv_with_lock(const char *name) { rb_native_mutex_lock(&env_lock); |