]> git.proxmox.com Git - mirror_frr.git/commitdiff
lib: fix sizeof expression (Coverity 1455482)
authorpaco <paco@voltanet.io>
Fri, 8 Jun 2018 17:30:32 +0000 (19:30 +0200)
committerpaco <paco@voltanet.io>
Fri, 8 Jun 2018 17:32:21 +0000 (19:32 +0200)
Signed-off-by: F. Aragon <paco@voltanet.io>
lib/thread.c

index f9ff16b7b3cd560b89642e944554f1e7ec88c441..18e1c922804cf43faad3302a2860582835ab79e2 100644 (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);
 }