summaryrefslogtreecommitdiff
path: root/source4/lib/registry/tools
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-02-08 14:17:17 +0100
committerJelmer Vernooij <jelmer@samba.org>2012-02-08 16:00:22 +0100
commit24ed8c59244de695e370055fa3a1af418029d8b9 (patch)
tree5545610cd44f2f374be3746d078d51b793ca55bf /source4/lib/registry/tools
parent773182f186f218b45abd84b996b37f27a07e2660 (diff)
downloadsamba-24ed8c59244de695e370055fa3a1af418029d8b9.tar.gz
samba-24ed8c59244de695e370055fa3a1af418029d8b9.tar.bz2
samba-24ed8c59244de695e370055fa3a1af418029d8b9.zip
regshell: Fix a counter that can actually be non-zero.
This was a regression caused by one of the unsigned patches. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Wed Feb 8 16:00:22 CET 2012 on sn-devel-104
Diffstat (limited to 'source4/lib/registry/tools')
-rw-r--r--source4/lib/registry/tools/regshell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/registry/tools/regshell.c b/source4/lib/registry/tools/regshell.c
index 6bd7fd3b8b..1a4067bce3 100644
--- a/source4/lib/registry/tools/regshell.c
+++ b/source4/lib/registry/tools/regshell.c
@@ -428,7 +428,7 @@ static char **reg_complete_command(const char *text, int start, int end)
/* Complete command */
char **matches;
size_t len, samelen=0;
- unsigned int i, count=1;
+ int i, count=1;
matches = malloc_array_p(char *, MAX_COMPLETIONS);
if (!matches) return NULL;