diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2012-05-10 00:59:30 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2012-05-10 00:59:30 -0400 |
commit | 89c65c4dc2132a36e4f0c8ac534cb2454803bf41 (patch) | |
tree | d03019ed8d3d2799ce6f00789d852f71b9c85ecc /json.h | |
parent | 9d7dc31b595b91aeb258faca459909b0b5b7965e (diff) | |
download | gpsd-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |