comparison svr-algo.c @ 611:870c63519757

Change comparison to be more paranoid (and perhaps avoid Klocwork false positive). Does not change behaviour.
author Matt Johnston <matt@ucc.asn.au>
date Thu, 07 Apr 2011 11:18:35 +0000
parents 0cfba3034be5
children 3062da90dab8
comparison
equal deleted inserted replaced
610:3c5f631358a0 611:870c63519757
66 if (algolist[i] == ',') { 66 if (algolist[i] == ',') {
67 algolist[i] = '\0'; 67 algolist[i] = '\0';
68 remotealgos[count] = &algolist[i+1]; 68 remotealgos[count] = &algolist[i+1];
69 count++; 69 count++;
70 } 70 }
71 if (count == MAX_PROPOSED_ALGO) { 71 if (count >= MAX_PROPOSED_ALGO) {
72 break; 72 break;
73 } 73 }
74 } 74 }
75 75
76 /* iterate and find the first match */ 76 /* iterate and find the first match */