s3: Fix two uninitialized variables
authorVolker Lendecke <vl@samba.org>
Tue, 20 Jul 2010 19:54:45 +0000 (21:54 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 20 Jul 2010 18:35:39 +0000 (20:35 +0200)
source3/lib/tldap.c

index 31ca54020ae94b807a6c789d0d68936f45153c1e..56cd87099086bfc4ea24db13448580cd27ee4106 100644 (file)
@@ -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;