Suppress empty-body warning
This commit is contained in:
parent
02ba0bda7e
commit
05c9dfe23a
4
hash.c
4
hash.c
@ -6028,12 +6028,12 @@ env_none(VALUE _)
|
|||||||
static int
|
static int
|
||||||
env_size_with_lock(void)
|
env_size_with_lock(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i = 0;
|
||||||
|
|
||||||
ENV_LOCK();
|
ENV_LOCK();
|
||||||
{
|
{
|
||||||
char **env = GET_ENVIRON(environ);
|
char **env = GET_ENVIRON(environ);
|
||||||
for (i=0; env[i]; i++);
|
while (env[i]) i++;
|
||||||
FREE_ENVIRON(environ);
|
FREE_ENVIRON(environ);
|
||||||
}
|
}
|
||||||
ENV_UNLOCK();
|
ENV_UNLOCK();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user