Diff for /libelwix/src/json.c between versions 1.1.2.10 and 1.1.2.11

version 1.1.2.10, 2017/11/29 08:32:46 version 1.1.2.11, 2017/11/30 13:45:38
Line 563  json_token2array(const char *jstr, jtok_t * __restrict Line 563  json_token2array(const char *jstr, jtok_t * __restrict
                 }                  }
         } else {          } else {
                 elwix_SetErr(J_ERR_PARAM, "%s", jerrstr[J_ERR_PARAM]);                  elwix_SetErr(J_ERR_PARAM, "%s", jerrstr[J_ERR_PARAM]);
                   ait_freeVars(&arr);
                 return NULL;                  return NULL;
         }          }
   
Line 921  json_add_pair(char * __restrict jstr, int jlen, int ws Line 922  json_add_pair(char * __restrict jstr, int jlen, int ws
                 jstr[eos] = 0;                  jstr[eos] = 0;
                 return -1;                  return -1;
         }          }
        if ((len = json_add_string(jstr, jlen, 0, key)) == -1) {        if ((len = json_add_string(jstr, jlen, 0, val)) == -1) {
                 jstr[eos] = 0;                  jstr[eos] = 0;
                 return -1;                  return -1;
         }          }

Removed from v.1.1.2.10  
changed lines
  Added in v.1.1.2.11


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>