diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-12-02 04:51:56 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:06:16 -0500 |
commit | 4183b2ac3832cdc2055d7eb3ed7121a9ea91085c (patch) | |
tree | 880492048be3a307eb82ebc663b4a7d3805dd337 /source4/ldap_server | |
parent | 3b863542dca8e638cdba6daad043f224d81fcd6a (diff) | |
download | samba-4183b2ac3832cdc2055d7eb3ed7121a9ea91085c.tar.gz samba-4183b2ac3832cdc2055d7eb3ed7121a9ea91085c.tar.xz samba-4183b2ac3832cdc2055d7eb3ed7121a9ea91085c.zip |
r4037: fixed a bunch of "might be uninitialised" warnings after enabling -O1 in my compile
(This used to be commit 0928b1f5b68c858922c3ea6c27ed03b5091c6221)
Diffstat (limited to 'source4/ldap_server')
-rw-r--r-- | source4/ldap_server/ldap_simple_ldb.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/ldap_server/ldap_simple_ldb.c b/source4/ldap_server/ldap_simple_ldb.c index 1b000f53eac..c33f04cafbb 100644 --- a/source4/ldap_server/ldap_simple_ldb.c +++ b/source4/ldap_server/ldap_simple_ldb.c @@ -59,7 +59,7 @@ static NTSTATUS sldb_Search(struct ldapsrv_partition *partition, struct ldapsrv_ int result = LDAP_SUCCESS; struct samdb_context *samdb; struct ldb_message **res; - int i, j, y, count; + int i, j, y, count = 0; enum ldb_scope scope = LDB_SCOPE_DEFAULT; const char **attrs = NULL; const char *errstr = NULL; @@ -183,7 +183,7 @@ static NTSTATUS sldb_Add(struct ldapsrv_partition *partition, struct ldapsrv_cal struct ldapsrv_reply *add_reply; int ldb_ret; struct samdb_context *samdb; - struct ldb_message *msg; + struct ldb_message *msg = NULL; int result = LDAP_SUCCESS; const char *errstr = NULL; int i,j; @@ -336,7 +336,7 @@ static NTSTATUS sldb_Modify(struct ldapsrv_partition *partition, struct ldapsrv_ struct ldapsrv_reply *modify_reply; int ldb_ret; struct samdb_context *samdb; - struct ldb_message *msg; + struct ldb_message *msg = NULL; int result = LDAP_SUCCESS; const char *errstr = NULL; int i,j; @@ -450,7 +450,7 @@ static NTSTATUS sldb_Compare(struct ldapsrv_partition *partition, struct ldapsrv struct ldb_message **res; const char *attrs[1]; const char *errstr = NULL; - const char *filter; + const char *filter = NULL; int count; local_ctx = talloc_named(call, 0, "sldb_Compare local_memory_context"); @@ -517,7 +517,7 @@ NTSTATUS sldb_ModifyDN(struct ldapsrv_partition *partition, struct ldapsrv_call struct samdb_context *samdb; const char *errstr = NULL; int result = LDAP_SUCCESS; - const char *newdn; + const char *newdn = NULL; char *parentdn = NULL; local_ctx = talloc_named(call, 0, "sldb_ModifyDN local memory context"); |