Allocated log messsage fro heap instead of stack.

This commit is contained in:
vraatikka 2013-06-28 10:36:21 +03:00
parent fd52e967db
commit 57bfad1c8a

View File

@ -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;