summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-08-07 17:49:19 -0700
committerJeremy Allison <jra@samba.org>2008-08-07 17:49:19 -0700
commit3907392459533832ada823e614154951365348ee (patch)
tree964c402d67ce38b4b24b48891b73a97e836bea6a /source3
parent00dd853a6f894796b63bb1629e0d72a32f2ba626 (diff)
downloadsamba-3907392459533832ada823e614154951365348ee.tar.gz
samba-3907392459533832ada823e614154951365348ee.tar.bz2
samba-3907392459533832ada823e614154951365348ee.zip
Fix "might be used uninitialized" warnings.
Jeremy. (This used to be commit 5abd12eec1c9b6d30af5ec1ba16c0922e78d5bea)
Diffstat (limited to 'source3')
-rw-r--r--source3/libnet/libnet_dssync.c6
-rw-r--r--source3/libnet/libnet_keytab.c1
2 files changed, 4 insertions, 3 deletions
diff --git a/source3/libnet/libnet_dssync.c b/source3/libnet/libnet_dssync.c
index 684a2cc63b..bae03effed 100644
--- a/source3/libnet/libnet_dssync.c
+++ b/source3/libnet/libnet_dssync.c
@@ -504,8 +504,8 @@ static NTSTATUS libnet_dssync_getncchanges(TALLOC_CTX *mem_ctx,
}
for (y=0, last_query = false; !last_query; y++) {
- struct drsuapi_DsReplicaObjectListItemEx *first_object;
- struct drsuapi_DsReplicaOIDMapping_Ctr *mapping_ctr;
+ struct drsuapi_DsReplicaObjectListItemEx *first_object = NULL;
+ struct drsuapi_DsReplicaOIDMapping_Ctr *mapping_ctr = NULL;
if (level == 8) {
DEBUG(1,("start[%d] tmp_higest_usn: %llu , highest_usn: %llu\n",y,
@@ -634,7 +634,7 @@ static NTSTATUS libnet_dssync_process(TALLOC_CTX *mem_ctx,
{
NTSTATUS status;
- int32_t level;
+ int32_t level = 0;
union drsuapi_DsGetNCChangesRequest req;
struct replUpToDateVectorBlob *old_utdv = NULL;
struct replUpToDateVectorBlob *pnew_utdv = NULL;
diff --git a/source3/libnet/libnet_keytab.c b/source3/libnet/libnet_keytab.c
index 836cf6ed23..6447183958 100644
--- a/source3/libnet/libnet_keytab.c
+++ b/source3/libnet/libnet_keytab.c
@@ -314,6 +314,7 @@ krb5_error_code libnet_keytab_add(struct libnet_keytab_context *ctx)
struct libnet_keytab_entry *entry = &ctx->entries[i];
krb5_data password;
+ ZERO_STRUCT(password);
password.data = (char *)entry->password.data;
password.length = entry->password.length;