Gave ret->val a default in tableAddLayer()