Skip to content

Commit

Permalink
fix macOS and infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
dovholuknf committed Oct 17, 2024
1 parent 782730f commit bfcd941
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <string.h>
#include <stdlib.h>
#include <utils.h>
#include <ctype.h>
#include "zt_internal.h"

const char* APP_ID = NULL;
Expand Down Expand Up @@ -52,7 +53,7 @@ int ziti_load_config(ziti_config *cfg, const char* cfgstr) {
}
bool seems_like_json = false;
const char* c = cfgstr;
while (*cfgstr && isspace((unsigned char)*cfgstr)) {
while (*c && isspace((unsigned char)*c)) {
c++;
}
if (*c == '{') {
Expand Down

0 comments on commit bfcd941

Please sign in to comment.