ecard_resource_end
if (ecard_resource_end(ec, i) &&
if (ecard_resource_end(ec, i))
unsigned long end = ecard_resource_end(ec, res);