Commit 276a3fe0 authored by Maria Dimashova's avatar Maria Dimashova

fixed #1981

parent a33d67f4
...@@ -195,12 +195,13 @@ int CvMLData::read_csv(const char* filename) ...@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment