projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5aa292b
)
motioncells: initialize class variables
author
Luis de Bethencourt
<luis.bg@samsung.com>
Wed, 4 Feb 2015 11:52:26 +0000
(11:52 +0000)
committer
Luis de Bethencourt
<luis.bg@samsung.com>
Wed, 4 Feb 2015 11:52:26 +0000
(11:52 +0000)
Some variables are not initialized in the constructor. It is highly unlikely
they are used before being set, but it is safer to initialize them.
CID #1197704
ext/opencv/MotionCells.cpp
patch
|
blob
|
history
diff --git
a/ext/opencv/MotionCells.cpp
b/ext/opencv/MotionCells.cpp
index
5eaa67f
..
449fe24
100644
(file)
--- a/
ext/opencv/MotionCells.cpp
+++ b/
ext/opencv/MotionCells.cpp
@@
-75,7
+75,12
@@
MotionCells::MotionCells ()
m_beta = 0.5;
m_useAlpha = false;
m_isVisible = false;
-
+ m_pCells = NULL;
+ m_gridx = 0;
+ m_gridy = 0;
+ m_cellwidth = 0;
+ m_cellheight = 0;
+ m_sensitivity = 0;
}
MotionCells::~MotionCells ()