Explorar el Código

JSON: Fix a forgotten token advancement

Julius Pfrommer hace 6 años
padre
commit
75795003fb
Se han modificado 1 ficheros con 2 adiciones y 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;
     }