summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/passdb/passdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c
index fde51c508f..3e86f05eae 100644
--- a/source3/passdb/passdb.c
+++ b/source3/passdb/passdb.c
@@ -479,10 +479,10 @@ char *pdb_encode_acct_ctrl(uint16 acct_ctrl, size_t length)
{
static fstring acct_str;
- SMB_ASSERT(length <= sizeof(acct_str));
-
size_t i = 0;
+ SMB_ASSERT(length <= sizeof(acct_str));
+
acct_str[i++] = '[';
if (acct_ctrl & ACB_PWNOTREQ ) acct_str[i++] = 'N';