[SSSD] Unpleasant warnings

Stephen Gallagher sgallagh at redhat.com
Tue Sep 8 19:01:08 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/08/2009 02:36 PM, Simo Sorce wrote:
> On Tue, 2009-09-08 at 12:21 +0200, Sumit Bose wrote:
>>> ../../server/responder/nss/nsssrv_cmd.c: In function ‘fill_grent’:
>>> ../../server/responder/nss/nsssrv_cmd.c:1371: warning: ‘i’ may be
>> used
>>> uninitialized in this function
>>
>> The value of count might have an unexpected value, but in this case
>> fill_grent will return an error, too.
> 
> Yet this is bad, as the function is supposed to always return how many
> entries have been used, even in case of errors.
> 
> Attached a patch to fix this, that makes it explicit.
> 
> Simo.
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> sssd-devel mailing list
> sssd-devel at lists.fedorahosted.org
> https://fedorahosted.org/mailman/listinfo/sssd-devel

Ack

- -- 
Stephen Gallagher
RHCE 804006346421761

Looking to carve out IT costs?
www.redhat.com/carveoutcosts/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkqmqfQACgkQeiVVYja6o6NEGwCfWM4uEWoBVNmLYoxOAzjDndwk
6BsAnAv89POWYql6FVlu7mQ4zOSSICMv
=294k
-----END PGP SIGNATURE-----



More information about the sssd-devel mailing list