mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
Introduce a xreallocarray and convert a few xcalloc instances that do
not require zero'ing.
This commit is contained in:
2
group.c
2
group.c
@ -91,7 +91,7 @@ group_restack(struct group_ctx *gc)
|
||||
if (cc->stackingorder > highstack)
|
||||
highstack = cc->stackingorder;
|
||||
}
|
||||
winlist = xcalloc((highstack + 1), sizeof(*winlist));
|
||||
winlist = xreallocarray(NULL, (highstack + 1), sizeof(*winlist));
|
||||
|
||||
/* Invert the stacking order for XRestackWindows(). */
|
||||
TAILQ_FOREACH(cc, &gc->clientq, group_entry) {
|
||||
|
Reference in New Issue
Block a user