It's easy to forget that this variable has to be static for correctness, so better allocate it in the function directly instead everywhere where it is called.
It's easy to forget that this variable has to be static for correctness, so better allocate it in the function directly instead everywhere where it is called.