[SSSD] [PATCH] Fix boolean comparison against string

Sumit Bose sbose at redhat.com
Tue Jan 4 10:28:34 UTC 2011


On Mon, Jan 03, 2011 at 01:10:23PM -0500, Stephen Gallagher wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> These two macros are only ever used as the default value for a call to
> confdb_get_bool(), which is expecting a boolean value here. By
> coincidence, this resulted in the same behavior as expected (because the
> memory location of the string != 0), but it is still incorrect.
> 
> 
> Coverity 10082 and 100083

ACK

bye,
Sumit

> 
> 
> - -- 
> Stephen Gallagher
> RHCE 804006346421761
> 
> Delivering value year after year.
> Red Hat ranks #1 in value among software vendors.
> http://www.redhat.com/promo/vendor/
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAk0iEQ8ACgkQeiVVYja6o6NHhwCfXUeIr//jaWzvw2+xnUCQTalZ
> 418AoI4IwukB726gJJQoeFvx99rNIpje
> =iJMC
> -----END PGP SIGNATURE-----



More information about the sssd-devel mailing list