summary refs log tree commit diff
path: root/group.c
diff options
context:
space:
mode:
authorokan <okan>2015-03-28 23:12:47 +0000
committerokan <okan>2015-03-28 23:12:47 +0000
commita4a414b68bf8a59255ee68959863f4c5fdee85d9 (patch)
treec612ebec85e5022479b6888b1ada2c5ad17c8eac /group.c
parent0bbe0ad98c7b8ed5d081747ee3bdb2dbf7a1b848 (diff)
downloadcwm-a4a414b68bf8a59255ee68959863f4c5fdee85d9.tar.gz
cwm-a4a414b68bf8a59255ee68959863f4c5fdee85d9.tar.xz
cwm-a4a414b68bf8a59255ee68959863f4c5fdee85d9.zip
Introduce a xreallocarray and convert a few xcalloc instances that do
not require zero'ing.
Diffstat (limited to 'group.c')
-rw-r--r--group.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/group.c b/group.c
index 834c2f7..7ab65f9 100644
--- a/group.c
+++ b/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) {