summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-10-05 14:58:52 +0200
committerGünther Deschner <gd@samba.org>2010-10-05 13:09:05 +0000
commitcaeb819861e0d87aebc6c1253102529cba6dec56 (patch)
treec0ce61d02cd8762a5e586c4e1ae931b67489a728
parent0a1ce77e29dd24f8f410e8832244bd8d03fd08b5 (diff)
downloadsamba-caeb819861e0d87aebc6c1253102529cba6dec56.tar.gz
samba-caeb819861e0d87aebc6c1253102529cba6dec56.tar.bz2
samba-caeb819861e0d87aebc6c1253102529cba6dec56.zip
s3-reg_parse: fix uninitialized variable in srprs_key().
Guenther
-rw-r--r--source3/registry/reg_parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/registry/reg_parse.c b/source3/registry/reg_parse.c
index 2fcdb41534..98704ec385 100644
--- a/source3/registry/reg_parse.c
+++ b/source3/registry/reg_parse.c
@@ -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;