From 89c65c4dc2132a36e4f0c8ac534cb2454803bf41 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 10 May 2012 00:59:30 -0400 Subject: Armor the JSON code against zeroed value or attribute pointers. Should never happen, but having the bailout logic in plavce creates static invariants that should banish a bunch of Coverity warnings. --- json.h | 1 + 1 file changed, 1 insertion(+) (limited to 'json.h') diff --git a/json.h b/json.h index 2bfd6f74..c253752a 100644 --- a/json.h +++ b/json.h @@ -102,6 +102,7 @@ void json_enable_debug(int, FILE *); #define JSON_ERR_NONQSTRING 19 /* didn't see quoted value when expecting string */ #define JSON_ERR_MISC 20 /* other data conversion error */ #define JSON_ERR_BADNUM 21 /* error while parsing a numerical argument */ +#define JSON_ERR_NULLPTR 22 /* unexpected null value or attribute pointer */ /* * Use the following macros to declare template initializers for structobject -- cgit v1.2.1