mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Suppress empty-body warning
This commit is contained in:
parent
02ba0bda7e
commit
05c9dfe23a
1 changed files with 2 additions and 2 deletions
4
hash.c
4
hash.c
|
@ -6028,12 +6028,12 @@ env_none(VALUE _)
|
|||
static int
|
||||
env_size_with_lock(void)
|
||||
{
|
||||
int i;
|
||||
int i = 0;
|
||||
|
||||
ENV_LOCK();
|
||||
{
|
||||
char **env = GET_ENVIRON(environ);
|
||||
for (i=0; env[i]; i++);
|
||||
while (env[i]) i++;
|
||||
FREE_ENVIRON(environ);
|
||||
}
|
||||
ENV_UNLOCK();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue