eolian: fix false positive use-after-free in parser

The catch here is that check_match results in a long jump under
that condition. The static analyzer doesn't know this, so declare
intent.

CID1402703
This commit is contained in:
Daniel Kolesa 2019-08-05 15:41:28 +02:00
parent 3c7e1c9767
commit 4f50a9728d
1 changed files with 1 additions and 0 deletions

View File

@ -217,6 +217,7 @@ parse_c_name(Eo_Lexer *ls)
{
eina_stringshare_del(cname);
check_match(ls, ')', '(', pline, pcol);
return NULL; /* unreachable */
}
return cname;
}