]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
Also fix messages returned from json_tokener_error_desc() (broke due to the ordering...
authorEric Haszlakiewicz <erh+git@nimenees.com>
Sat, 12 Aug 2023 18:52:32 +0000 (18:52 +0000)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Sat, 12 Aug 2023 18:52:32 +0000 (18:52 +0000)
json_tokener.c

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