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:
22927ff
)
fixed ticket #983
author
Vadim Pisarevsky
<no@email>
Mon, 13 Jun 2011 21:23:42 +0000
(21:23 +0000)
committer
Vadim Pisarevsky
<no@email>
Mon, 13 Jun 2011 21:23:42 +0000
(21:23 +0000)
modules/core/src/persistence.cpp
patch
|
blob
|
history
diff --git
a/modules/core/src/persistence.cpp
b/modules/core/src/persistence.cpp
index
04528c0
..
64097e6
100644
(file)
--- a/
modules/core/src/persistence.cpp
+++ b/
modules/core/src/persistence.cpp
@@
-4790,9
+4790,12
@@
cvTypeOf( const void* struct_ptr )
{
CvTypeInfo* info = 0;
- for( info = CvType::first; info != 0; info = info->next )
- if( info->is_instance( struct_ptr ))
- break;
+ if( struct_ptr )
+ {
+ for( info = CvType::first; info != 0; info = info->next )
+ if( info->is_instance( struct_ptr ))
+ break;
+ }
return info;
}