summaryrefslogtreecommitdiffhomepage
path: root/cli-algo.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2011-04-07 11:18:35 +0000
committerMatt Johnston <matt@ucc.asn.au>2011-04-07 11:18:35 +0000
commit8028e078152e4ab7d9d22cbdab56d9f00588574a (patch)
tree242f0242ec1d95dff8e4b5b387ccbe7bb49c3d38 /cli-algo.c
parent3fc6569d46326042dae2dfec52061fd49e03224c (diff)
Change comparison to be more paranoid (and perhaps avoid Klocwork false
positive). Does not change behaviour. --HG-- extra : convert_revision : 11d5ca4bf2f4197ed2d14b6772a351bcb59f775e
Diffstat (limited to 'cli-algo.c')
-rw-r--r--cli-algo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli-algo.c b/cli-algo.c
index ec3a1ff..09da41a 100644
--- a/cli-algo.c
+++ b/cli-algo.c
@@ -67,7 +67,7 @@ algo_type * cli_buf_match_algo(buffer* buf, algo_type localalgos[],
remotealgos[count] = &algolist[i+1];
count++;
}
- if (count == MAX_PROPOSED_ALGO) {
+ if (count >= MAX_PROPOSED_ALGO) {
break;
}
}