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:
5791e89
)
fixed uninitialized variable use in writeGraph (reported by valgrind when running...
author
Vadim Pisarevsky
<no@email>
Sat, 13 Nov 2010 22:00:10 +0000
(22:00 +0000)
committer
Vadim Pisarevsky
<no@email>
Sat, 13 Nov 2010 22:00:10 +0000
(22:00 +0000)
modules/core/src/persistence.cpp
patch
|
blob
|
history
diff --git
a/modules/core/src/persistence.cpp
b/modules/core/src/persistence.cpp
index
c2b5c59
..
f81dfb0
100644
(file)
--- a/
modules/core/src/persistence.cpp
+++ b/
modules/core/src/persistence.cpp
@@
-4334,7
+4334,7
@@
icvWriteGraph( CvFileStorage* fs, const char* name,
{
int fmt_pairs[CV_FS_MAX_FMT_PAIRS], fmt_pair_count;
fmt_pair_count = icvDecodeFormat( dt, fmt_pairs, CV_FS_MAX_FMT_PAIRS );
- if( fmt_pair_count > 2
||
CV_ELEM_SIZE(fmt_pairs[2*2+1]) >= (int)sizeof(double))
+ if( fmt_pair_count > 2
&&
CV_ELEM_SIZE(fmt_pairs[2*2+1]) >= (int)sizeof(double))
edge_user_align = sizeof(double);
}