diff options
author | 2008-01-16 11:05:48 +1000 | |
---|---|---|
committer | 2008-01-16 11:05:48 +1000 | |
commit | 804f5ab334fdb8ffe0540e424cadab9329f31b14 (patch) | |
tree | eaddc6e5471afd8021a057998c9f43198199d69f /function.c | |
parent | f974c7c4163cc12c461c920905ade7b8e46d644d (diff) |
Add an extra input validation check
darcs-hash:20080116010548-75c98-e6f198bb1eb5a456ce830c42f061428a9c6f755d.gz
Diffstat (limited to 'function.c')
-rw-r--r-- | function.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 ) |