mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Ticket #1376 (TAGS parser crashes)
fix: incorrect parse invalid input parameters in etags_set_definition_hash
This commit is contained in:
parent
105c56fb4d
commit
9283c14213
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user