summaryrefslogtreecommitdiff
path: root/json.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-05-10 00:59:30 -0400
committerEric S. Raymond <esr@thyrsus.com>2012-05-10 00:59:30 -0400
commit89c65c4dc2132a36e4f0c8ac534cb2454803bf41 (patch)
treed03019ed8d3d2799ce6f00789d852f71b9c85ecc /json.h
parent9d7dc31b595b91aeb258faca459909b0b5b7965e (diff)
downloadgpsd-89c65c4dc2132a36e4f0c8ac534cb2454803bf41.tar.gz
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.
Diffstat (limited to 'json.h')
-rw-r--r--json.h1
1 files changed, 1 insertions, 0 deletions
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