nwrap: Fix initialization of e entry
authorAndreas Schneider <asn@samba.org>
Mon, 16 Nov 2015 09:17:39 +0000 (10:17 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 11 Jan 2016 11:25:31 +0000 (12:25 +0100)
This fixes a compiler warning.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
lib/nss_wrapper/nss_wrapper.c

index 9a7fbf5110af0808f58cd38b6bf243174fef87d6..feb807a91f9232622c40a25e3332c74effafb94d 100644 (file)
@@ -3518,7 +3518,9 @@ static int nwrap_files_getaddrinfo(const char *name,
        size_t name_len;
        char canon_name[DNS_NAME_MAX] = { 0 };
        bool skip_canonname = false;
-       ENTRY e = { 0 };
+       ENTRY e = {
+               .key = NULL,
+       };
        ENTRY *e_p = NULL;
        int rc;
        bool ok;