Avoid use of global variables in thread-safe functionality
To guarantee thread-safe functionality, don't use shared global variables such as string buffers or other temporary storage containers.
If such variables cannot be completely local to a functionality, at least refactor these variables to module_t or sourcefile_t level.