aboutsummaryrefslogtreecommitdiffstats
path: root/group.c
diff options
context:
space:
mode:
authorokan2015-03-28 23:12:47 +0000
committerokan2015-03-28 23:12:47 +0000
commit9bb42946a8791addade91b9e9379f94b144429f7 (patch)
treeb25fc6d5b689346d70e6ed6da0e53631bfbba475 /group.c
parentbb5e4d99f201e4ec5894c69664775998925ad2d0 (diff)
downloadcwm-9bb42946a8791addade91b9e9379f94b144429f7.tar.gz
Introduce a xreallocarray and convert a few xcalloc instances that do
not require zero'ing.
Diffstat (limited to 'group.c')
-rw-r--r--group.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/group.c b/group.c
index a5f4859..d18ece8 100644
--- a/group.c
+++ b/group.c
@@ -16,7 +16,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: group.c,v 1.110 2015/01/19 14:54:16 okan Exp $
+ * $OpenBSD: group.c,v 1.111 2015/03/28 23:12:47 okan Exp $
*/
#include <sys/types.h>
@@ -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) {