summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/util/u_queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/u_queue.c b/src/util/u_queue.c
index 8a43320e59f..be95d9eec3f 100644
--- a/src/util/u_queue.c
+++ b/src/util/u_queue.c
@@ -239,7 +239,7 @@ util_queue_thread_func(void *input)
free(input);
- if (queue->name) {
+ if (strlen(queue->name) > 0) {
char name[16];
util_snprintf(name, sizeof(name), "%s%i", queue->name, thread_index);
u_thread_setname(name);