Skip to content
Snippets Groups Projects
Commit eed45f45 authored by Luke Howard's avatar Luke Howard
Browse files

Fix content rule validation code -- don't use validation result variable

as an iterator!
parent 1e49fdc6
No related branches found
No related tags found
No related merge requests found
......@@ -440,10 +440,12 @@ entry_schema_check(
int k;
if( cr ) {
int j;
k = -1;
if( cr->scr_auxiliaries ) {
for( ; cr->scr_auxiliaries[k]; k++ ) {
if( cr->scr_auxiliaries[k] == oc ) {
for( j = 0; cr->scr_auxiliaries[j]; j++ ) {
if( cr->scr_auxiliaries[j] == oc ) {
k = 0;
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment