Allocated log messsage fro heap instead of stack.
This commit is contained in:
parent
fd52e967db
commit
57bfad1c8a
@ -102,7 +102,9 @@ version()
|
||||
void
|
||||
ModuleInit()
|
||||
{
|
||||
skygw_log_write(NULL, LOGFILE_MESSAGE, "Initial test router module.\n");
|
||||
skygw_log_write(NULL,
|
||||
LOGFILE_MESSAGE,
|
||||
strdup("Initial test router module.\n"));
|
||||
fprintf(stderr, "Initial test router module.\n");
|
||||
spinlock_init(&instlock);
|
||||
instances = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user