summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/smbconf/smbconf_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/smbconf/smbconf_util.c b/source3/lib/smbconf/smbconf_util.c
index b2e253dd26..aa16369269 100644
--- a/source3/lib/smbconf/smbconf_util.c
+++ b/source3/lib/smbconf/smbconf_util.c
@@ -138,7 +138,7 @@ bool smbconf_reverse_find_in_array(const char *string, char **list,
return false;
}
- for (i = num_entries - 1; i >= 0; i++) {
+ for (i = num_entries - 1; i >= 0; i--) {
if (strequal(string, list[i])) {
if (entry != NULL) {
*entry = i;