]> granicus.if.org Git - json-c/commit
Take a hint from PR #464 and use json_object_new_string_len() to avoid a needless...
authorEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 2 Aug 2020 02:23:01 +0000 (02:23 +0000)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 2 Aug 2020 02:23:01 +0000 (02:23 +0000)
commitbfec9c8685de475e109e6ff9a82bbf9f0ba87caf
treebfcfb5acc4d3a2ceae275b2a1762c9d0adeb4368
parent56a89f902f360c91a80ac0c7419d2ba1aa8e8634
Take a hint from PR #464 and use json_object_new_string_len() to avoid a needless extra strlen() call.
Also, create a _json_object_get_string_len() for internal use when we know
for sure the object we're dealing with is a json_type_string.
json_object.c