Accessing a Local variable

The qualifiers static and local are unrelated and you have the correct behavior.

I hope you don’t go to work there.