diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-12-16 13:53:15 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-12-16 14:19:28 +0900 |
commit | 05c9dfe23a7d1b970f5b62feeba3199413567fa5 (patch) | |
tree | 87e7fc971261a5562c28c02826a905fdf2745739 | |
parent | 02ba0bda7e548fcc7245d246324e253e5e2fc96a (diff) |
Suppress empty-body warning
-rw-r--r-- | hash.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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(); |