fix a corner case in conditional debug parsing
This commit is contained in:
parent
ad91be1ad3
commit
38bca0ae1a
|
@ -91,13 +91,14 @@ Condition* InfixOperator(const char** str, Condition(*nextPart(const char**)), i
|
||||||
|
|
||||||
if (t1 == 0)
|
if (t1 == 0)
|
||||||
{
|
{
|
||||||
freeTree(t);
|
if(t)
|
||||||
|
freeTree(t);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
mid = (Condition*)FCEU_dmalloc(sizeof(Condition));
|
mid = (Condition*)FCEU_dmalloc(sizeof(Condition));
|
||||||
if (!mid)
|
if (!mid)
|
||||||
return NULL;
|
return NULL;
|
||||||
memset(mid, 0, sizeof(Condition));
|
memset(mid, 0, sizeof(Condition));
|
||||||
|
|
||||||
mid->lhs = t;
|
mid->lhs = t;
|
||||||
|
|
Loading…
Reference in New Issue