From 18dc4a803e23dbd8448cf808d9a579dadf581843 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 19 Jun 2015 20:03:08 +0200 Subject: [PATCH] barometer plugin: Fix "Allocator sizeof operand mismatch" warning. --- src/barometer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/barometer.c b/src/barometer.c index ee200b6d..a6d98354 100644 --- a/src/barometer.c +++ b/src/barometer.c @@ -255,7 +255,7 @@ static averaging_t temperature_averaging = { NULL, 0, 0L, 0 }; */ static int averaging_create(averaging_t *avg, int size) { - avg->ring_buffer = calloc ((size_t) size, sizeof (*avg)); + avg->ring_buffer = calloc ((size_t) size, sizeof (*avg->ring_buffer)); if (avg->ring_buffer == NULL) { ERROR ("barometer: averaging_create - ring buffer allocation of size %d failed", -- 2.30.2