X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fcpufreq.c;h=21b6429a18d7b9eb4e47de0ee4c5a4e41b94ffea;hb=bbf34ecad8e0d8e50fd44cd3c4433b76385564ce;hp=a81cf46239ef41f7811204e11fd653dcb97fb400;hpb=126d448bce2ab48300c05f13ee7eb0a75b214d81;p=collectd.git diff --git a/src/cpufreq.c b/src/cpufreq.c index a81cf462..21b6429a 100644 --- a/src/cpufreq.c +++ b/src/cpufreq.c @@ -37,7 +37,7 @@ struct cpu_data_t { static bool report_p_stats = false; static void cpufreq_stats_init(void) { - cpu_data = calloc(num_cpu, sizeof(struct cpu_data_t)); + cpu_data = calloc(num_cpu, sizeof(*cpu_data)); if (cpu_data == NULL) return;