regshell: Fix a counter that can actually be non-zero.
authorJelmer Vernooij <jelmer@samba.org>
Wed, 8 Feb 2012 13:17:17 +0000 (14:17 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Wed, 8 Feb 2012 15:00:22 +0000 (16:00 +0100)
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

source4/lib/registry/tools/regshell.c

index 6bd7fd3b8bdd0bc399971efa08e2848a0002c7fb..1a4067bce35352beafa31b7edd172d7d61f1240a 100644 (file)
@@ -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;