From 0af5062e9a94d17653818c3a220a1f97cdf9f005 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Mon, 21 Oct 2013 11:57:11 +0200 Subject: regression fix: global variable access did not work --- runtime/msg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/msg.c') diff --git a/runtime/msg.c b/runtime/msg.c index 991da436..e159bba9 100644 --- a/runtime/msg.c +++ b/runtime/msg.c @@ -2556,8 +2556,8 @@ getJSONPropVal(struct json_object *jroot, es_str_t *propName, uchar **pRes, rs_s field = jroot; } else { name = (uchar*)es_str2cstr(propName, NULL); - leaf = jsonPathGetLeaf(name, ustrlen(name)); - CHKiRet(jsonPathFindParent(jroot, name, leaf, &parent, 1)); + leaf = jsonPathGetLeaf(name+1, ustrlen(name-1)); + CHKiRet(jsonPathFindParent(jroot, name+1, leaf, &parent, 1)); field = json_object_object_get(parent, (char*)leaf); } if(field != NULL) { -- cgit v1.2.3