Skip to content

Commit

Permalink
Fix return FindKeyIndex
Browse files Browse the repository at this point in the history
replace 'return NULL' to 'return 0', FindKeyIndex should return a int.

Signed-off-by: XoD <xoddark@gmail.com>
  • Loading branch information
XoD committed Dec 28, 2011
1 parent 0b48f6f commit a95464d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neo/idlib/Dict.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ int idDict::FindKeyIndex( const char *key ) const {

if ( key == NULL || key[0] == '\0' ) {
idLib::common->DWarning( "idDict::FindKeyIndex: empty key" );
return NULL;
return 0;
}

int hash = argHash.GenerateKey( key, false );
Expand Down

0 comments on commit a95464d

Please sign in to comment.