aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2017-09-08 02:42:47 +0200
committerGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2017-09-08 02:42:47 +0200
commitfd6335c93d4fcbc8ee43907edc3db5d42a83e87f (patch)
tree629f6d081ba7863d18f4c6ed1c9dc29e35659c0a /src
parent9fbeb279b03f6994494a93db43b28e65720083bc (diff)
Some compilers still don't like that.
Diffstat (limited to 'src')
-rw-r--r--src/core/lib/support/string.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/lib/support/string.c b/src/core/lib/support/string.c
index ec93303024..523e43445b 100644
--- a/src/core/lib/support/string.c
+++ b/src/core/lib/support/string.c
@@ -300,11 +300,12 @@ void *gpr_memrchr(const void *s, int c, size_t n) {
}
bool gpr_is_true(const char *s) {
+ size_t i;
if (s == NULL) {
return false;
}
static const char *truthy[] = {"yes", "true", "1"};
- for (size_t i = 0; i < GPR_ARRAY_SIZE(truthy); i++) {
+ for (i = 0; i < GPR_ARRAY_SIZE(truthy); i++) {
if (0 == gpr_stricmp(s, truthy[i])) {
return true;
}