summaryrefslogtreecommitdiff
path: root/json.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-05-11 00:56:59 -0400
committerEric S. Raymond <esr@thyrsus.com>2012-05-11 00:56:59 -0400
commit58cdea90090b69dcafa44c1452454a8d16f107eb (patch)
treeebb6e3a5c18b0d1f017b74d8d2ecaf98d0aa35ff /json.c
parent327e04c51b618d6950b60aa617cd4c4b1f7607e6 (diff)
downloadgpsd-58cdea90090b69dcafa44c1452454a8d16f107eb.tar.gz
Get rid of nullbool default - not used, and it causes a bad smell to Coverity.
Diffstat (limited to 'json.c')
-rw-r--r--json.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/json.c b/json.c
index 5398d956..3f3278f7 100644
--- a/json.c
+++ b/json.c
@@ -210,11 +210,7 @@ static int json_internal_read_object(const char *cp,
lptr[0] = '\0';
break;
case t_boolean:
- /* nullbool default says not to set the value at all */
- /*@+boolint@*/
- if (cursor->dflt.boolean != nullbool)
- *((bool *) lptr) = cursor->dflt.boolean;
- /*@-boolint@*/
+ *((bool *) lptr) = cursor->dflt.boolean;
break;
case t_character:
lptr[0] = cursor->dflt.character;