| 1 | diff --git a/lib/task.cc b/lib/task.cc |
| 2 | index 9604ff2..238a841 100644 |
| 3 | |
| 4 | |
| 5 | namespace crucible { |
| 6 | pthread_getname() |
| 7 | { |
| 8 | char buf[thread_name_length + 1] = { 0 }; |
| 9 | - // We'll get an empty name if this fails... |
| 10 | - pthread_getname_np(pthread_self(), buf, sizeof(buf)); |
| 11 | // ...or at least null-terminated garbage |
| 12 | buf[thread_name_length] = '\0'; |
| 13 | return buf; |