summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/registry/patchfile_preg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/lib/registry/patchfile_preg.c b/source4/lib/registry/patchfile_preg.c
index 8854225c76..eb84b56403 100644
--- a/source4/lib/registry/patchfile_preg.c
+++ b/source4/lib/registry/patchfile_preg.c
@@ -42,8 +42,7 @@ static WERROR preg_read_utf16(int fd, char *c)
static WERROR preg_write_utf16(int fd, const char *string)
{
codepoint_t v;
- uint16_t i;
- size_t size;
+ size_t i, size;
for (i = 0; i < strlen(string); i+=size) {
v = next_codepoint(&string[i], &size);