[SSSD] [PATCH] LDAP: initialize refresh function handler

Ondrej Kos okos at redhat.com
Wed Dec 19 15:54:50 UTC 2012


On 19/12/12 12:45, Pavel Březina wrote:
> On 12/19/2012 10:27 AM, Ondrej Kos wrote:
>> i noticed warning during compilation:
>>
>> src/providers/ldap/sdap_sudo.c: In function 'sdap_sudo_schedule_refresh':
>> src/providers/ldap/sdap_sudo.c:1236:9: warning: 'send_fn' may be used
>> uninitialized in this function [-Wmaybe-uninitialized]
>>
>> patch is attached
>>
>> Ondra
>
> Hi,
> thanks. FYI you need at least -O1.
>
> I see also:
> src/providers/ldap/sdap_async_sudo.c: In function
> 'sdap_sudo_load_sudoers_done':
> src/providers/ldap/sdap_async_sudo.c:579:9: warning: 'ret' may be used
> uninitialized in this function [-Wmaybe-uninitialized]
> src/providers/ldap/sdap_async_sudo.c:543:13: note: 'ret' was declared here
>
> Can you fix it too in this patch?
> _______________________________________________
> sssd-devel mailing list
> sssd-devel at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/sssd-devel

thanks, i forgot to raise optimalization level after some debugging

new patch is attached

Ondra

-- 
Ondrej Kos
Associate Software Engineer
Identity Management
Red Hat Czech

phone: +420-532-294-558
cell:  +420-736-417-909
ext:   82-62558
loc:   1013 Brno 1 office
irc:   okos @ #brno
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-LDAP-fix-variables-initialization.patch
Type: text/x-patch
Size: 1441 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20121219/88e1617d/attachment.bin>


More information about the sssd-devel mailing list