mtlb_zeros([]) crash Scilab
Reported by Clement DAVID (@davidcl)
BUG DESCRIPTION:
----------------
When debugging moc_toolbox tests, I discovered some crashes on mtlb_zeros([]). This Scilab macros is implemented through list extraction which is crashing on empty list:
tmp = list(); zeros(tmp(1:$))
ERROR LOG:
----------
Scilab crash
HOW TO REPRODUCE THE BUG:
-------------------------
tmp = list(); zeros(tmp(1:$))
// or mtlb_zeros([])
// or test_run("path/to/moc_toolbox", "moc_accumarray")
OTHER INFORMATION:
------------------