fix: avoid empty strings.

This commit is contained in:
iceman1001 2018-02-03 21:56:34 +01:00
parent 2b34fbec0c
commit 2d2a8b7b1b

View file

@ -61,6 +61,7 @@ function main(args)
if lists == nil then return oops("Couldn't find any CRC algos with that width") end
for _,i in pairs(lists) do
if string.len(i) > 1 then
local a1 = core.reveng_runmodel(i, data, false, '0')
local a2 = core.reveng_runmodel(i, data, true, '0')
local a3 = core.reveng_runmodel(i, data, false, 'b')
@ -69,6 +70,7 @@ function main(args)
local a6 = core.reveng_runmodel(i, data, false, 'L')
print( ('%-20s| %-16s| %-16s| %-16s| %-16s| %-16s| %-16s'):format(i, a1:upper(), a2:upper(),a3:upper(),a4:upper(),a5:upper(),a6:upper() ) )
end
end
end
main(args)