Skip to content

Commit

Permalink
whitespace fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dovholuknf committed Oct 17, 2024
1 parent bfcd941 commit 5f0d16e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ static int load_config_file(const char *filename, ziti_config *cfg) {
return ZITI_OK;
}

int ziti_load_config(ziti_config *cfg, const char* cfgstr) {
int ziti_load_config(ziti_config *cfg, const char *cfgstr) {
if (!cfgstr) {
return ZITI_INVALID_CONFIG;
}
bool seems_like_json = false;
const char* c = cfgstr;
const char *c = cfgstr;
while (*c && isspace((unsigned char)*c)) {
c++;
}
Expand All @@ -62,7 +62,7 @@ int ziti_load_config(ziti_config *cfg, const char* cfgstr) {

memset(cfg, 0, sizeof(*cfg));
int rc;
if(seems_like_json) {
if (seems_like_json) {
rc = parse_ziti_config(cfg, cfgstr, strlen(cfgstr));

if (rc < 0) {
Expand Down

0 comments on commit 5f0d16e

Please sign in to comment.