Suppress empty-body warning

This commit is contained in:
Nobuyoshi Nakada 2021-12-16 13:53:15 +09:00
parent 02ba0bda7e
commit 05c9dfe23a
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6

4
hash.c
View File

@ -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();