mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 11:40:44 +08:00
fixed #1981
This commit is contained in:
parent
a33d67f48a
commit
276a3fe01b
@ -195,12 +195,13 @@ int CvMLData::read_csv(const char* filename)
|
|||||||
ptr++;
|
ptr++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cols_count++;
|
||||||
|
|
||||||
if ( cols_count == 0)
|
if ( cols_count == 0)
|
||||||
{
|
{
|
||||||
fclose(file);
|
fclose(file);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
cols_count++;
|
|
||||||
|
|
||||||
// create temporary memory storage to store the whole database
|
// create temporary memory storage to store the whole database
|
||||||
el_ptr = new float[cols_count];
|
el_ptr = new float[cols_count];
|
||||||
|
Loading…
Reference in New Issue
Block a user