summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2024-04-05 19:12:29 +0200
committercgzones <cgzones@googlemail.com>2024-04-05 19:25:20 +0200
commit58c1cb0204281e2d16ed83464ad1bc37ae7b4de8 (patch)
treefc1bea4b65aff9f1e1182ff924b83438848aea23
parent869220b5896e9bf5e9072254ab99779c960e3eae (diff)
Avoid multiplication in calloc argument
-rw-r--r--Settings.c2
1 files changed, 1 insertions, 1 deletions
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;

© 2014-2024 Faster IT GmbH | imprint | privacy policy