From 24ed8c59244de695e370055fa3a1af418029d8b9 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 8 Feb 2012 14:17:17 +0100 Subject: 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 Autobuild-Date: Wed Feb 8 16:00:22 CET 2012 on sn-devel-104 --- source4/lib/registry/tools/regshell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4') 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; -- cgit