Merge pull request #2389 from pacovn/Coverity_1455482_Incorrect_sizeof_expression

lib: fix sizeof expression (Coverity 1455482)
This commit is contained in:
Donald Sharp 2018-06-08 14:36:42 -04:00 committed by GitHub
commit d3fff05258
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}