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:
vraatikka
2013-11-27 10:51:45 +02:00
parent 8d1553b693
commit 41298a09df
4 changed files with 20 additions and 18 deletions

View File

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

View File

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