[SSSD] [PATCH] Fix boolean comparison against string

Stephen Gallagher sgallagh at redhat.com
Mon Jan 3 18:10:23 UTC 2011


-----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


- -- 
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-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-boolean-comparison-against-string.patch
Type: text/x-patch
Size: 956 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20110103/b2839472/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-boolean-comparison-against-string.patch.sig
Type: application/pgp-signature
Size: 72 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20110103/b2839472/attachment.sig>


More information about the sssd-devel mailing list