From: paco Date: Fri, 8 Jun 2018 17:30:32 +0000 (+0200) Subject: lib: fix sizeof expression (Coverity 1455482) X-Git-Tag: frr-6.1-dev~352^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F2389%2Fhead;p=mirror%2Ffrr.git lib: fix sizeof expression (Coverity 1455482) Signed-off-by: F. Aragon --- 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); }