summaryrefslogtreecommitdiff
path: root/json/apr_json_decode.c
diff options
context:
space:
mode:
authorGraham Leggett <minfrin@apache.org>2018-09-01 20:06:18 +0000
committerGraham Leggett <minfrin@apache.org>2018-09-01 20:06:18 +0000
commitee50e50e73418b0f1c3fac2be11f73ea773c78f0 (patch)
treee539a9087a3f38a1e27eeb8f037a2fdc03609871 /json/apr_json_decode.c
parent49c6f8385af187c1a66b0719829e1c7f17de301b (diff)
downloadapr-ee50e50e73418b0f1c3fac2be11f73ea773c78f0.tar.gz
apr_json: Split apr_json_object_set() into apr_json_object_set() with
a simple key, and apr_json_object_set() with the key as an apr_json_value_t, so the caller has a simpler interface to use to add a key value pair to an object. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1839840 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'json/apr_json_decode.c')
-rw-r--r--json/apr_json_decode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/json/apr_json_decode.c b/json/apr_json_decode.c
index c790d6fdc..5ef2cb854 100644
--- a/json/apr_json_decode.c
+++ b/json/apr_json_decode.c
@@ -501,7 +501,7 @@ static apr_status_t apr_json_decode_object(apr_json_scanner_t * self,
if ((status = apr_json_decode_value(self, &value)))
goto out;
- apr_json_object_set(json, key, value, self->pool);
+ apr_json_object_set_ex(json, key, value, self->pool);
if (self->p == self->e) {
status = APR_EOF;