Fix uninitialized variable

This commit is contained in:
Andrew Pamment 2017-10-02 14:13:40 +10:00
parent 0538bb4cda
commit bdcae2e6e1

View File

@ -45,7 +45,7 @@ static int jsoneq(const char *json, jsmntok_t *tok, const char *s) {
static char *encapsulate_quote(char *in) { static char *encapsulate_quote(char *in) {
char out[512]; char out[512];
int i; int i = 0;
int j = 0; int j = 0;
for (j=0;j<strlen(in);j++) { for (j=0;j<strlen(in);j++) {
if (in[j] == '\"' || in[j] == '\\') { if (in[j] == '\"' || in[j] == '\\') {