Truly initialize thread name

This commit is contained in:
2023-01-12 15:07:46 +01:00
parent f42ac83323
commit 410d692372

View File

@ -187,7 +187,8 @@ void logger_set_name(const char *restrict format, ...) {
} }
// set thread name // set thread name
pthread_setname_np(pthread_self(), global_name); // warning: max length is 16 (incl. terminating null byte)
pthread_setname_np(pthread_self(), ptr);
// cleanup // cleanup
va_end(args); va_end(args);