Building Statement List: MALLOC. Bug fix (strdup is a malloc)

This commit is contained in:
Daniel Marjamäki 2007-05-19 17:13:55 +00:00
parent 0d5d4f299a
commit c3efd64b27
1 changed files with 2 additions and 2 deletions

View File

@ -687,9 +687,9 @@ void CreateStatementList()
TOKEN *rs = eq->next;
bool ismalloc = false;
if ( rs->str[0] == '(' )
ismalloc |= match(rs, "strdup (");
if (rs->str[0]=='(' && IsName(getstr(rs,1)))
{
ismalloc |= match(rs, "strdup (");
ismalloc |= match(rs, "( type * ) malloc (");
ismalloc |= match(rs, "( type * * ) malloc (");
ismalloc |= match(rs, "( type type * ) malloc (");