summaryrefslogtreecommitdiff
path: root/source3/libnet
diff options
context:
space:
mode:
authorSteven Danneman <steven.danneman@isilon.com>2008-09-15 15:48:55 -0700
committerJeremy Allison <jra@samba.org>2008-09-15 16:13:35 -0700
commit38fff9f9227c2c70a9d522f8355a9e1967e7cb72 (patch)
treeb730a9fedaf8cec9be8106c3c7a61db4228cbc75 /source3/libnet
parent47feb1722896bfcd20ec56df39bc0c87fd706563 (diff)
downloadsamba-38fff9f9227c2c70a9d522f8355a9e1967e7cb72.tar.gz
samba-38fff9f9227c2c70a9d522f8355a9e1967e7cb72.tar.bz2
samba-38fff9f9227c2c70a9d522f8355a9e1967e7cb72.zip
Fixed "uninitialized variable" build warning
With gcc 4.1.3 on Ubuntu 7.10 the following build warning occurs: Compiling libnet/libnet_samsync_keytab.c cc1: warnings being treated as errors libnet/libnet_samsync_keytab.c: In function ‘fetch_sam_entries_keytab’: libnet/libnet_samsync_keytab.c:102: warning: ‘entry.enctype’ is used uninitialized in this function Fixed by initializing to ENCTYPE_NULL
Diffstat (limited to 'source3/libnet')
-rw-r--r--source3/libnet/libnet_samsync_keytab.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libnet/libnet_samsync_keytab.c b/source3/libnet/libnet_samsync_keytab.c
index f284f08ad9..9e666ced32 100644
--- a/source3/libnet/libnet_samsync_keytab.c
+++ b/source3/libnet/libnet_samsync_keytab.c
@@ -93,6 +93,7 @@ static NTSTATUS fetch_sam_entry_keytab(TALLOC_CTX *mem_ctx,
ctx->dns_domain_name);
entry.password = data_blob_talloc(mem_ctx, nt_passwd, 16);
entry.kvno = ads_get_kvno(ctx->ads, entry.name);
+ entry.enctype = ENCTYPE_NULL;
NT_STATUS_HAVE_NO_MEMORY(entry.name);
NT_STATUS_HAVE_NO_MEMORY(entry.principal);