Actually, I think it is better that the new pointer variables are still declared `static`
in the `.c` files needing them, with a function that initializes them (for use in
mod_init()) and another one that destroys them (in mod_destroy(). Practically copy the
memory allocation/free code to their own functions in the files declaring the static
pointers and expose them in `.h` files use from main file of the module.
Otherwise, some variables have pretty generic name (e.g., db_keys) and can confuse some
linkers and can mess up references at runtime.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2891#issuecomment-952833907