From 6dd86181704f2cb4425608c1513ecaf9cbf38e85 Mon Sep 17 00:00:00 2001 From: Eric Haszlakiewicz Date: Sat, 12 Aug 2023 18:52:32 +0000 Subject: [PATCH] Also fix messages returned from json_tokener_error_desc() (broke due to the ordering change of enum json_tokener_error) --- json_tokener.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/json_tokener.c b/json_tokener.c index 9403f85..9926563 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 */