Skip to content

Commit

Permalink
Add an extra input validation check
Browse files Browse the repository at this point in the history
darcs-hash:20080116010548-75c98-e6f198bb1eb5a456ce830c42f061428a9c6f755d.gz
  • Loading branch information
liljencrantz committed Jan 16, 2008
1 parent f974c7c commit 804f5ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions function.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,10 @@ void function_set_desc( const wchar_t *name, const wchar_t *desc )
static int al_contains_str( array_list_t *list, const wchar_t * str )
{
int i;

CHECK( list, 0 );
CHECK( str, 0 );

for( i=0; i<al_get_count( list ); i++ )
{
if( wcscmp( al_get( list, i ), str) == 0 )
Expand Down

0 comments on commit 804f5ab

Please sign in to comment.