summaryrefslogtreecommitdiffstats
path: root/source3/modules/perfcount_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/modules/perfcount_test.c')
-rw-r--r--source3/modules/perfcount_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/perfcount_test.c b/source3/modules/perfcount_test.c
index 9ff2d36adc..c4f7c2e335 100644
--- a/source3/modules/perfcount_test.c
+++ b/source3/modules/perfcount_test.c
@@ -69,7 +69,7 @@ static void perfcount_test_add_counters(struct perfcount_test_context *ctxt)
found = false;
- if (ptc->op > MAX_OP)
+ if (ptc->op >= MAX_OP)
continue;
for (head = g_list[ptc->op]; head != NULL; head = head->next) {