diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2012-05-11 00:56:59 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2012-05-11 00:56:59 -0400 |
commit | 58cdea90090b69dcafa44c1452454a8d16f107eb (patch) | |
tree | ebb6e3a5c18b0d1f017b74d8d2ecaf98d0aa35ff /json.c | |
parent | 327e04c51b618d6950b60aa617cd4c4b1f7607e6 (diff) | |
download | gpsd-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.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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; |