diff options
| author | paco <paco@voltanet.io> | 2018-06-08 19:30:32 +0200 |
|---|---|---|
| committer | paco <paco@voltanet.io> | 2018-06-08 19:32:21 +0200 |
| commit | 883cc51dfeebb31ffa1bedbe9c72c61283267b3b (patch) | |
| tree | 6ed655f19a8a1778fb1ae6f44275a29f60ee04a0 /lib/thread.c | |
| parent | 9eafc8abd74a4d8144c764e0361dbb2a51da91c9 (diff) | |
lib: fix sizeof expression (Coverity 1455482)
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'lib/thread.c')
| -rw-r--r-- | lib/thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |
