Ticket #1376 (TAGS parser crashes)

fix: incorrect parse invalid input parameters in etags_set_definition_hash
This commit is contained in:
Ilia Maslakov 2009-06-23 09:23:34 +00:00
parent 105c56fb4d
commit 9283c14213

View File

@ -131,6 +131,9 @@ int etags_set_definition_hash(const char *tagfile, const char *start_path,
int pos;
char *filename = NULL;
if ( !match_func || !tagfile )
return 0;
/* open file with positions */
f = fopen (tagfile, "r");
if (!f)