mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 07:13:02 +04:00
Fixed several issues found by static analysis
This commit is contained in:
@@ -804,7 +804,7 @@ cvGetFileNode( CvFileStorage* fs, CvFileNode* _map_node,
|
||||
|
||||
if( !map_node )
|
||||
map_node = (CvFileNode*)cvGetSeqElem( fs->roots, k );
|
||||
|
||||
CV_Assert(map_node != NULL);
|
||||
if( !CV_NODE_IS_MAP(map_node->tag) )
|
||||
{
|
||||
if( (!CV_NODE_IS_SEQ(map_node->tag) || map_node->data.seq->total != 0) &&
|
||||
@@ -6777,6 +6777,7 @@ cvLoad( const char* filename, CvMemStorage* memstorage,
|
||||
CvSeqReader reader;
|
||||
|
||||
node = (CvFileNode*)cvGetSeqElem( (*fs)->roots, k );
|
||||
CV_Assert(node != NULL);
|
||||
if( !CV_NODE_IS_MAP( node->tag ))
|
||||
return 0;
|
||||
seq = node->data.seq;
|
||||
|
||||
Reference in New Issue
Block a user