diff options
-rw-r--r-- | source4/auth/gensec/gensec_krb5.c | 2 | ||||
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/samldb.c | 2 | ||||
-rw-r--r-- | source4/lib/ejs/var.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/source4/auth/gensec/gensec_krb5.c b/source4/auth/gensec/gensec_krb5.c index 168b6df364..a1a4886af9 100644 --- a/source4/auth/gensec/gensec_krb5.c +++ b/source4/auth/gensec/gensec_krb5.c @@ -391,7 +391,7 @@ static NTSTATUS gensec_krb5_session_key(struct gensec_security *gensec_security, krb5_context context = gensec_krb5_state->smb_krb5_context->krb5_context; krb5_auth_context auth_context = gensec_krb5_state->auth_context; krb5_keyblock *skey; - krb5_error_code err; + krb5_error_code err = -1; if (gensec_krb5_state->session_key.data) { *session_key = gensec_krb5_state->session_key; diff --git a/source4/dsdb/samdb/ldb_modules/samldb.c b/source4/dsdb/samdb/ldb_modules/samldb.c index 62a796bd89..0c43b8dc06 100644 --- a/source4/dsdb/samdb/ldb_modules/samldb.c +++ b/source4/dsdb/samdb/ldb_modules/samldb.c @@ -145,7 +145,7 @@ static char *samldb_search_domain(struct ldb_module *module, TALLOC_CTX *mem_ctx { const char *sdn; struct ldb_message **res = NULL; - int ret; + int ret = 0; sdn = dn; while ((sdn = strchr(sdn, ',')) != NULL) { diff --git a/source4/lib/ejs/var.c b/source4/lib/ejs/var.c index 63c0b7b98d..70a277ae73 100644 --- a/source4/lib/ejs/var.c +++ b/source4/lib/ejs/var.c @@ -1706,7 +1706,7 @@ void mprVarToString(char** out, int size, char *fmt, MprVar *obj) MprVar mprParseVar(char *buf, MprType preferredType) { - MprType type; + MprType type = MPR_TYPE_UNDEFINED; char *cp; mprAssert(buf); |