* JSON errors are now labelled with JSON and not XML
* Fixed: [Performance issue when parsing large JSON param](https://github.com/clicon/clixon/issues/266) * Moved strlen() from for end condition * Fixed debugging of xpath parser
This commit is contained in:
parent
3cd3f7987d
commit
392e6679c5
17 changed files with 166 additions and 89 deletions
|
|
@ -102,13 +102,15 @@ regexp_xsd2posix(char *xsd,
|
|||
int j; /* lookahead */
|
||||
int esc;
|
||||
int minus = 0;
|
||||
|
||||
size_t len;
|
||||
|
||||
if ((cb = cbuf_new()) == NULL){
|
||||
clicon_err(OE_UNIX, errno, "cbuf_new");
|
||||
goto done;
|
||||
}
|
||||
esc=0;
|
||||
for (i=0; i<strlen(xsd); i++){
|
||||
len = strlen(xsd);
|
||||
for (i=0; i<len; i++){
|
||||
x = xsd[i];
|
||||
if (esc){
|
||||
esc = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue