diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2024-04-05 19:12:29 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2024-04-05 19:25:20 +0200 |
commit | 58c1cb0204281e2d16ed83464ad1bc37ae7b4de8 (patch) | |
tree | fc1bea4b65aff9f1e1182ff924b83438848aea23 | |
parent | 869220b5896e9bf5e9072254ab99779c960e3eae (diff) |
Avoid multiplication in calloc argument
-rw-r--r-- | Settings.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |