[SSSD] [PATCH] LDAP: Fix value initialization warnings

Lukas Slebodnik lslebodn at redhat.com
Thu Apr 4 06:57:03 UTC 2013


On (03/04/13 14:13), Lukas Slebodnik wrote:
>hi,
>
>There are no more any warnings in fedora 19 with attached patches.
>I think, that they are false positive, but I don't like warnings.
>
>LS

I found another initialization bug, but I am not sure, how to fix it.
src/providers/ipa/ipa_dyndns.c: In function 'ipa_dyndns_update_send':
src/providers/ipa/ipa_dyndns.c:245:39: warning: 'state' is used uninitialized in this function [-Wuninitialized]

In file src/providers/ipa/ipa_dyndns.c
   234  static struct tevent_req *
   235  ipa_dyndns_update_send(struct ipa_options *ctx)
   236  {
   237      int ret;
   238      char *iface;
   239      struct ipa_dyndns_ctx *state;
   240      struct ifaddrs *ifaces;
   241      struct ifaddrs *ifa;
   242      struct ipa_ipaddress *address;
   243      struct tevent_req *req, *subreq;
   244      size_t addrsize;
   245      struct sdap_id_ctx *id_ctx = state->ipa_ctx->id_ctx->sdap_id_ctx;
                                         ^^^^^
                                      this could not work

Introduced in patch:584eda08 Jakub Hrozek      2013-03-25 22:54:48 +0100

LS



More information about the sssd-devel mailing list