mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 10:04:18 +00:00
Merge pull request #2389 from pacovn/Coverity_1455482_Incorrect_sizeof_expression
lib: fix sizeof expression (Coverity 1455482)
This commit is contained in:
commit
d3fff05258
@ -60,7 +60,7 @@ static struct list *masters;
|
|||||||
/* CLI start ---------------------------------------------------------------- */
|
/* CLI start ---------------------------------------------------------------- */
|
||||||
static unsigned int cpu_record_hash_key(struct cpu_thread_history *a)
|
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);
|
return jhash(&a->func, size, 0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user