mirror of
https://github.com/cc65/cc65.git
synced 2025-01-01 03:30:20 +00:00
Fixed an error: An .ELSE without an .IF caused a null pointer dereference.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5047 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
acb1699017
commit
ce0d51d55a
@ -227,8 +227,10 @@ void DoConditionals (void)
|
||||
ElseClause (D, ".ELSE");
|
||||
|
||||
/* Remember the data for the .ELSE */
|
||||
GetFullLineInfo (&D->LineInfos, 0);
|
||||
D->Name = ".ELSE";
|
||||
if (D) {
|
||||
GetFullLineInfo (&D->LineInfos, 0);
|
||||
D->Name = ".ELSE";
|
||||
}
|
||||
|
||||
/* Calculate the new overall condition */
|
||||
CalcOverallIfCond ();
|
||||
|
Loading…
Reference in New Issue
Block a user