Skip to content

Commit b232157

Browse files
committed
Fixed several issues found by static analysis
1 parent 67b6ef4 commit b232157

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

modules/calib3d/src/sqpnp.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ class PoseSolver {
7272
cv::Matx<double, 9, 1> r_hat;
7373
cv::Matx<double, 3, 1> t;
7474
double sq_error;
75+
SQPSolution() : sq_error(0) {}
7576
};
7677

7778
/*

modules/dnn/src/layers/pooling_layer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ virtual Ptr<BackendNode> initNgraph(const std::vector<Ptr<BackendWrapper> >& inp
750750
if (max_elem!=last)
751751
{
752752
dstData[x0] = *max_elem;
753-
if( compMaxIdx )
753+
if( compMaxIdx && dstMaskData )
754754
{
755755
dstMaskData[x0] = std::distance(first, max_elem);
756756
}

modules/videoio/src/cap_msmf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ class SourceReaderCB : public IMFSourceReaderCallback
309309
{
310310
public:
311311
SourceReaderCB() :
312-
m_nRefCount(0), m_hEvent(CreateEvent(NULL, FALSE, FALSE, NULL)), m_bEOS(FALSE), m_hrStatus(S_OK), m_reader(NULL), m_dwStreamIndex(0)
312+
m_nRefCount(0), m_hEvent(CreateEvent(NULL, FALSE, FALSE, NULL)), m_bEOS(FALSE), m_hrStatus(S_OK), m_reader(NULL), m_dwStreamIndex(0), m_lastSampleTimestamp(0)
313313
{
314314
}
315315

0 commit comments

Comments
 (0)