Explorar o código

JSON: Fix a forgotten token advancement

Julius Pfrommer %!s(int64=6) %!d(string=hai) anos
pai
achega
75795003fb
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/ua_types_encoding_json.c

+ 2 - 0
src/ua_types_encoding_json.c

@@ -2069,6 +2069,8 @@ DECODE_JSON(String) {
     if(tokenSize == 0) {
         dst->data = (UA_Byte*)UA_EMPTY_ARRAY_SENTINEL;
         dst->length = 0;
+        if(moveToken)
+            parseCtx->index++;
         return UA_STATUSCODE_GOOD;
     }