projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a33d67f
)
fixed #1981
author
Maria Dimashova
<no@email>
Thu, 24 May 2012 16:52:14 +0000
(16:52 +0000)
committer
Maria Dimashova
<no@email>
Thu, 24 May 2012 16:52:14 +0000
(16:52 +0000)
modules/ml/src/data.cpp
patch
|
blob
|
history
diff --git
a/modules/ml/src/data.cpp
b/modules/ml/src/data.cpp
index
9bf4674
..
01d51da
100644
(file)
--- a/
modules/ml/src/data.cpp
+++ b/
modules/ml/src/data.cpp
@@
-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];