From 883cc51dfeebb31ffa1bedbe9c72c61283267b3b Mon Sep 17 00:00:00 2001 From: paco Date: Fri, 8 Jun 2018 19:30:32 +0200 Subject: [PATCH] lib: fix sizeof expression (Coverity 1455482) Signed-off-by: F. Aragon --- lib/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/thread.c b/lib/thread.c index f9ff16b7b3..18e1c92280 100644 --- a/lib/thread.c +++ b/lib/thread.c @@ -60,7 +60,7 @@ static struct list *masters; /* CLI start ---------------------------------------------------------------- */ static unsigned int cpu_record_hash_key(struct cpu_thread_history *a) { - int size = sizeof(&a->func); + int size = sizeof(a->func); return jhash(&a->func, size, 0); } -- 2.39.5