summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_conf_json.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2017-05-26 20:30:51 +0300
committerValentin Bartenev <vbart@nginx.com>2017-05-26 20:30:51 +0300
commit5cca4b3ab78ee964081c3eba6eb715fdf3ed4dbd (patch)
tree6941a252ed61602de9962e7abb898ff3ebbfce02 /src/nxt_conf_json.c
parent4f9f4637990f0cf2811318a4c19c223b3d894d57 (diff)
downloadunit-5cca4b3ab78ee964081c3eba6eb715fdf3ed4dbd.tar.gz
unit-5cca4b3ab78ee964081c3eba6eb715fdf3ed4dbd.tar.bz2
Style and a trivial fix.
Diffstat (limited to 'src/nxt_conf_json.c')
-rw-r--r--src/nxt_conf_json.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_conf_json.c b/src/nxt_conf_json.c
index 618ed28c..77f8089f 100644
--- a/src/nxt_conf_json.c
+++ b/src/nxt_conf_json.c
@@ -108,7 +108,7 @@ nxt_conf_json_indentation(u_char *pos, nxt_conf_json_pretty_t *pretty)
nxt_conf_json_value_t *
-nxt_conf_json_value_get(nxt_conf_json_value_t *value, nxt_str_t *path)
+nxt_conf_json_get_value(nxt_conf_json_value_t *value, nxt_str_t *path)
{
u_char *p, *start, *end;
@@ -397,7 +397,7 @@ nxt_conf_json_parse_object(u_char *pos, u_char *end,
object = nxt_mem_alloc(pool, sizeof(nxt_conf_json_object_t)
+ count * sizeof(nxt_conf_json_obj_member_t));
if (nxt_slow_path(object == NULL)) {
- return NULL;
+ goto error;
}
value->u.object = object;