Bugzilla entry # 363:
skygw_thread_t and simple_mutex_t make own copy of name argrument. Changed init calls to both accordingly.
This commit is contained in:
@ -358,7 +358,7 @@ static bool logmanager_init_nomutex(
|
||||
}
|
||||
|
||||
/** Initialize and start filewriter thread */
|
||||
fw->fwr_thread = skygw_thread_init(strdup("filewriter thr"),
|
||||
fw->fwr_thread = skygw_thread_init("filewriter thr",
|
||||
thr_filewriter_fun,
|
||||
(void *)fw);
|
||||
|
||||
|
@ -153,7 +153,7 @@ int main(int argc, char* argv[])
|
||||
#if defined(TEST1)
|
||||
|
||||
mes = skygw_message_init();
|
||||
mtx = simple_mutex_init(NULL, strdup("testmtx"));
|
||||
mtx = simple_mutex_init(NULL, "testmtx");
|
||||
/** Test starts */
|
||||
|
||||
fprintf(stderr, "\nStarting test #1 \n");
|
||||
|
Reference in New Issue
Block a user