This commit is contained in:
Maria Dimashova 2012-05-24 16:52:14 +00:00
parent a33d67f48a
commit 276a3fe01b

View File

@ -195,12 +195,13 @@ int CvMLData::read_csv(const char* filename)
ptr++;
}
cols_count++;
if ( cols_count == 0)
{
fclose(file);
return -1;
}
cols_count++;
// create temporary memory storage to store the whole database
el_ptr = new float[cols_count];