diff options
author | okan | 2015-03-28 23:12:47 +0000 |
---|---|---|
committer | okan | 2015-03-28 23:12:47 +0000 |
commit | 9bb42946a8791addade91b9e9379f94b144429f7 (patch) | |
tree | b25fc6d5b689346d70e6ed6da0e53631bfbba475 /group.c | |
parent | bb5e4d99f201e4ec5894c69664775998925ad2d0 (diff) | |
download | cwm-9bb42946a8791addade91b9e9379f94b144429f7.tar.gz |
Introduce a xreallocarray and convert a few xcalloc instances that do
not require zero'ing.
Diffstat (limited to '')
-rw-r--r-- | group.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |