Allocated log messsage fro heap instead of stack.
This commit is contained in:
@ -102,7 +102,9 @@ version()
|
|||||||
void
|
void
|
||||||
ModuleInit()
|
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");
|
fprintf(stderr, "Initial test router module.\n");
|
||||||
spinlock_init(&instlock);
|
spinlock_init(&instlock);
|
||||||
instances = NULL;
|
instances = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user