Merge pull request #12439 from nicolasnoble/compilers-be-compilers

Quick compilation fix.
pull/12440/head^2
Nicolas Noble 7 years ago committed by GitHub
commit 1a4b3acff0
  1. 3
      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;
}

Loading…
Cancel
Save