Wal-Mart's a large successful operation and didn't get to be that way by being stupid. Regardless of whether the health department knew, I'm sure Wal-Mart took care of business just like any successful grocery supplier would. They carry insurance for things just like this.
Why would you think otherwise? Did you think that Wal-Mart was a mom and pop bodega? "Thimk" before you come up with silly conjectures.
More information about formatting options