Fix segfault on empty .proc (#25)
This commit is contained in:
parent
9e161a5fc1
commit
5219cd6501
@ -1371,7 +1371,7 @@ DEF_DIRECTIVE(end)
|
||||
lastWasEnd = false;
|
||||
}
|
||||
|
||||
else if (elem.type == SE_PROC || elem.type == SE_FOR || (elem.type == SE_IF && BUF.size() > 0))
|
||||
else if ((elem.type == SE_PROC || elem.type == SE_FOR || elem.type == SE_IF) && BUF.size() > 0)
|
||||
{
|
||||
u32 p = BUF.size();
|
||||
u32 lastOpcode = BUF[p-1] >> 26;
|
||||
|
Loading…
Reference in New Issue
Block a user