Fixed 4 broken ml tests.

This commit is contained in:
Andrey Kamaev 2012-04-13 19:39:14 +00:00
parent 2619221331
commit 5c7e8d775c

@ -217,7 +217,7 @@ int CvMLData::read_csv(const char* filename)
str_to_flt_elem( token, el_ptr[cols_count-1], type); str_to_flt_elem( token, el_ptr[cols_count-1], type);
var_types_ptr[cols_count-1] |= type; var_types_ptr[cols_count-1] |= type;
cvSeqPush( seq, el_ptr ); cvSeqPush( seq, el_ptr );
if( !fgets_chomp( buf, M, file ) ) if( !fgets_chomp( buf, M, file ) || !strchr( buf, delimiter ) )
break; break;
} }
fclose(file); fclose(file);