| 2216 | if (!json_string(p, &key)) goto bad; |
| 2217 | json_ws(p); |
| 2218 | if (**p != ':') { |
| 2219 | free(key); |
| 2220 | goto bad; |
| 2221 | } |
| 2222 | (*p)++; |
| 2223 | if (!strcmp(key, "type")) { |
| 2224 | if (!json_string_replace(p, &type)) { |
| 2225 | free(key); |
| 2226 | goto bad; |
no test coverage detected