From 58c1cb0204281e2d16ed83464ad1bc37ae7b4de8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Fri, 5 Apr 2024 19:12:29 +0200 Subject: Avoid multiplication in calloc argument --- Settings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Settings.c b/Settings.c index 670acabe..f9a58e37 100644 --- a/Settings.c +++ b/Settings.c @@ -790,7 +790,7 @@ Settings* Settings_new(unsigned int initialCpuCount, Hashtable* dynamicMeters, H this->topologyAffinity = false; #endif - this->screens = xCalloc(Platform_numberOfDefaultScreens * sizeof(ScreenSettings*), 1); + this->screens = xCalloc(Platform_numberOfDefaultScreens, sizeof(ScreenSettings*)); this->nScreens = 0; char* legacyDotfile = NULL; -- cgit v1.2.3