summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLionel Landwerlin <[email protected]>2018-07-05 11:55:43 +0100
committerLionel Landwerlin <[email protected]>2018-07-05 15:42:26 +0100
commit78d5c1c82a2c437a70edb62c7217d9284cb99b5f (patch)
tree4916b3cc2b371b56ca3b843084606931ef89e2b5
parent93a5c9bc99a20516426cd633ea335f7da52db3b4 (diff)
util: u_queue: fix android build error
mesa/src/util/u_queue.c:242:15: error: address of array 'queue->name' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion] Fixes: b238e33bc9d48b814370 "kutil/queue: add a process name into a thread name" Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Eric Engestrom <[email protected]>
-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);