char table in a function retains values between calls without static [SOLVED]

You got lucky.

Ever hear the phrase "works like a charm" ?

How often do charms work?
Would you rely on that?