Merge pull request #353 from asmaloney:arg_checks

This commit is contained in:
cuda-geek
2013-01-29 11:04:32 +04:00
committed by OpenCV Buildbot
2 changed files with 8 additions and 7 deletions

View File

@@ -614,11 +614,12 @@ cvGetHashedKey( CvFileStorage* fs, const char* str, int len, int create_missing
CvStringHashNode* node = 0;
unsigned hashval = 0;
int i, tab_size;
CvStringHash* map = fs->str_hash;
if( !fs )
return 0;
CvStringHash* map = fs->str_hash;
if( len < 0 )
{
for( i = 0; str[i] != '\0'; i++ )