1
0
mirror of https://github.com/cc65/cc65.git synced 2024-10-01 15:54:59 +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:
uz 2011-06-09 11:27:33 +00:00
parent acb1699017
commit ce0d51d55a

View File

@ -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 ();