diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-06-08 14:36:42 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-08 14:36:42 -0400 |
| commit | d3fff0525857a55f6e6fc1a2090c45e070fe64b8 (patch) | |
| tree | 8c282251bd63f84380fddc024bc51f1fe9d6ea54 /lib/thread.c | |
| parent | a22addd5a3860259802113a902e1feada7212d0f (diff) | |
| parent | 883cc51dfeebb31ffa1bedbe9c72c61283267b3b (diff) | |
Merge pull request #2389 from pacovn/Coverity_1455482_Incorrect_sizeof_expression
lib: fix sizeof expression (Coverity 1455482)
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); } |
