diff --git a/src/test/getdns_query.c b/src/test/getdns_query.c index e3678f9a..fa6689f5 100644 --- a/src/test/getdns_query.c +++ b/src/test/getdns_query.c @@ -1032,20 +1032,13 @@ static int _jsmn_get_dict(char *js, jsmntok_t *t, size_t count, /* Happend when primitives are used as keys */ break; - if (t[j].type != JSMN_STRING -#if 0 - && t[j].type != JSMN_PRIMITIVE -#endif - ) { + if (t[j].type != JSMN_STRING && + t[j].type != JSMN_PRIMITIVE) { *r = GETDNS_RETURN_WRONG_TYPE_REQUESTED; getdns_dict_destroy(new_dict); return 0; } key = js + t[j].start; - if (t[j].type== JSMN_PRIMITIVE) { - js[t[j].end - 1] = '\0'; - i++; - } else js[t[j].end] = '\0'; j += 1; switch (t[j].type) { diff --git a/src/test/jsmn b/src/test/jsmn index 7f9f06a8..daa17063 160000 --- a/src/test/jsmn +++ b/src/test/jsmn @@ -1 +1 @@ -Subproject commit 7f9f06a8b23d22723c03a85465b15059ff4bd626 +Subproject commit daa17063c67f0dfe873af25ab6b664641c8cf90c