Browse Source

Also fix messages returned from json_tokener_error_desc() (broke due to the ordering change of enum json_tokener_error)

tags/json-c-0.17-20230812
Eric Haszlakiewicz 2 years ago
parent
commit
6dd8618170
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      json_tokener.c

+ 2
- 2
json_tokener.c View File

@@ -104,7 +104,6 @@ static const char *json_tokener_errors[] = {
"success", "success",
"continue", "continue",
"nesting too deep", "nesting too deep",
"out of memory",
"unexpected end of data", "unexpected end of data",
"unexpected character", "unexpected character",
"null expected", "null expected",
@@ -117,7 +116,8 @@ static const char *json_tokener_errors[] = {
"invalid string sequence", "invalid string sequence",
"expected comment", "expected comment",
"invalid utf-8 string", "invalid utf-8 string",
"buffer size overflow"
"buffer size overflow",
"out of memory"
}; };
/* clang-format on */ /* clang-format on */




Loading…
Cancel
Save