s3-reg_parse: fix uninitialized variable in srprs_key().
authorGünther Deschner <gd@samba.org>
Tue, 5 Oct 2010 12:58:52 +0000 (14:58 +0200)
committerGünther Deschner <gd@samba.org>
Tue, 5 Oct 2010 13:09:05 +0000 (13:09 +0000)
Guenther

source3/registry/reg_parse.c

index 2fcdb41534bb3861f7a47f51539830eb90d46e2d..98704ec3856b5b6b2d0606b843e0718291184967 100644 (file)
@@ -263,7 +263,7 @@ static bool srprs_key(const char** ptr, cbuf* key, bool* del)
 {
        const char* pos = *ptr;
        const char* closing_bracket_pos = NULL;
-       size_t      closing_bracket_idx;
+       size_t      closing_bracket_idx = 0;
 
        if (!srprs_skipws(&pos) || !srprs_char(&pos, '[')) {
                return false;