From: Jeremy Allison Date: Tue, 1 Jul 2008 22:51:54 +0000 (-0700) Subject: Jim Brown was right, this needs to be a signed int or X-Git-Tag: samba-3.3.0pre1~708 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=80e547665d104a6db376ff4c48bcc01dfd3513ee;p=thirdparty%2Fsamba.git Jim Brown was right, this needs to be a signed int or the loop never terminates. Jeremy. --- diff --git a/source/lib/smbconf/smbconf_util.c b/source/lib/smbconf/smbconf_util.c index aa163692696..271fc47dd44 100644 --- a/source/lib/smbconf/smbconf_util.c +++ b/source/lib/smbconf/smbconf_util.c @@ -132,7 +132,7 @@ bool smbconf_find_in_array(const char *string, char **list, bool smbconf_reverse_find_in_array(const char *string, char **list, uint32_t num_entries, uint32_t *entry) { - uint32_t i; + int32_t i; if ((string == NULL) || (list == NULL) || (num_entries == 0)) { return false;