Merge pull request #44 from VanessaE/master

prevent crash in µC sbi
This commit is contained in:
VanessaE 2012-09-01 14:30:25 -07:00
commit 6fec23a5f2
1 changed files with 1 additions and 0 deletions

View File

@ -505,6 +505,7 @@ function yc_command_parsecondition(cond, L, eeprom)
if cond:sub(i+1, i+1) == nil then break end
if s == "=" then
if a==nil then return nil end
if b==nil then return nil end
if a == b then buf = "1" end
if a ~= b then buf = "0" end
cond = string.gsub(cond, b..s..a, buf)