mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
More issues found by static analysis
This commit is contained in:
@@ -855,7 +855,6 @@ icvTraceContour_32s( int *ptr, int step, int *stop_ptr, int is_hole )
|
||||
for( ;; )
|
||||
{
|
||||
CV_Assert(i3 != NULL);
|
||||
s_end = s;
|
||||
s = std::min(s, MAX_SIZE - 1);
|
||||
|
||||
while( s < MAX_SIZE - 1 )
|
||||
@@ -1479,7 +1478,7 @@ icvFindContoursInInterval( const CvArr* src,
|
||||
cv::Ptr<CvMemStorage> storage01;
|
||||
CvSeq* first = 0;
|
||||
|
||||
int i, j, k, n;
|
||||
int j, k, n;
|
||||
|
||||
uchar* src_data = 0;
|
||||
int img_step = 0;
|
||||
@@ -1547,7 +1546,6 @@ icvFindContoursInInterval( const CvArr* src,
|
||||
|
||||
// First line. None of runs is binded
|
||||
tmp.pt.y = 0;
|
||||
i = 0;
|
||||
CV_WRITE_SEQ_ELEM( tmp, writer );
|
||||
upper_line = (CvLinkedRunPoint*)CV_GET_WRITTEN_ELEM( writer );
|
||||
|
||||
@@ -1580,7 +1578,7 @@ icvFindContoursInInterval( const CvArr* src,
|
||||
last_elem = tmp_prev;
|
||||
tmp_prev->next = 0;
|
||||
|
||||
for( i = 1; i < img_size.height; i++ )
|
||||
for( int i = 1; i < img_size.height; i++ )
|
||||
{
|
||||
//------// Find runs in next line
|
||||
src_data += img_step;
|
||||
|
||||
Reference in New Issue
Block a user