Ver código fonte

JSON: Fix a forgotten token advancement

Julius Pfrommer 6 anos atrás
pai
commit
75795003fb
1 arquivos alterados com 2 adições e 0 exclusões
  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;
     }