Patch from Raghu <raghud@hereuare.com>
q = *to;
pa = &attrname[0];
+ *q = '\0';
+
/*
* Skip the '}' at the front of 'p'
* Increment open braces
while ((*p) && (!stop)) {
switch(*p) {
case '}':
- openbraces--;
stop=1;
- p++;
break;
case ':':
while((*p != '\0') && (openbraces > 0)) {
if(*p == '}')
openbraces--;
+ if(*p == '{')
+ openbraces++;
if (openbraces > 0)
p++;
}
} else {
- openbraces--;
- if (*p != '\0') {
- p--;
- decode_attribute(&p, &q, freespace, &openbraces, request, func);
- }
+ p--;
}
*open = openbraces;