From: Eric Haszlakiewicz Date: Sat, 12 Aug 2023 18:52:32 +0000 (+0000) Subject: Also fix messages returned from json_tokener_error_desc() (broke due to the ordering... X-Git-Tag: json-c-0.17-20230812~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6dd86181704f2cb4425608c1513ecaf9cbf38e85;p=thirdparty%2Fjson-c.git Also fix messages returned from json_tokener_error_desc() (broke due to the ordering change of enum json_tokener_error) --- diff --git a/json_tokener.c b/json_tokener.c index 9403f850..9926563e 100644 --- a/json_tokener.c +++ b/json_tokener.c @@ -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 */