diff --git a/library/config.c b/library/config.c index f1dca5e7..82e2c23a 100644 --- a/library/config.c +++ b/library/config.c @@ -55,7 +55,7 @@ int ziti_load_config(ziti_config *cfg, const char* cfgstr) { while (*cfgstr && isspace((unsigned char)*cfgstr)) { c++; } - if (strncmp(c,"{",1) == 0) { + if (*c == '{') { seems_like_json = true; }