From 0efbbf03ab6b2d8ca2ce51c29c25833c57494c62 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Sat, 16 Jan 2016 01:05:55 +0100 Subject: Initialize variables --- service_passwords.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/service_passwords.c b/service_passwords.c index 1a60fc5..a1d8f6d 100644 --- a/service_passwords.c +++ b/service_passwords.c @@ -261,7 +261,7 @@ fail1: */ static int auth_with_password_fallback(char *dn, struct berval *credentials) { - char *parent_dn; + char *parent_dn = NULL; int rc = 0; char fn[] = "auth_with_password_fallback in service_passwords plug-in"; @@ -314,13 +314,13 @@ static int auth_with_password_fallback(char *dn, struct berval *credentials) */ static int pre_bind(Slapi_PBlock *pb) { - char *dn; - int method; - struct berval *credentials; - int is_replication; - int is_internal; + char *dn = NULL; + int method = 0; + struct berval *credentials = NULL; + int is_replication = 0; + int is_internal = 0; - char *parent_dn; + char *parent_dn = NULL; int rc = 0; char fn[] = "pre_bind in service_passwords plug-in"; -- cgit v1.2.3-1-g7c22