From dc443ee6e9e97c08bcceaa1cbc155635e73e8118 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 20 Jul 2010 21:54:45 +0200 Subject: s3: Fix two uninitialized variables --- source3/lib/tldap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/lib/tldap.c') diff --git a/source3/lib/tldap.c b/source3/lib/tldap.c index 31ca54020a..56cd870990 100644 --- a/source3/lib/tldap.c +++ b/source3/lib/tldap.c @@ -1081,7 +1081,7 @@ static int tldap_hex2char(const char *x) { if (isxdigit(x[0]) && isxdigit(x[1])) { const char h1 = x[0], h2 = x[1]; - int c; + int c = 0; if (h1 >= 'a') c = h1 - (int)'a' + 10; else if (h1 >= 'A') c = h1 - (int)'A' + 10; @@ -1305,7 +1305,7 @@ static bool tldap_push_filter_basic(struct tldap_context *ld, const char *dn; const char *rule; const char *star; - size_t type_len; + size_t type_len = 0; char *uval; size_t uval_len; bool write_octect = true; -- cgit