diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2015-03-21 15:05:30 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2015-04-21 16:58:08 -0700 |
commit | f59236c2865d22c6f0b2d1ba303213afd10cd02e (patch) | |
tree | 86865f9806a3754895861910a8a27c1d93bb5653 /glamor/glamor_utils.c | |
parent | 7ac280287491fe06127d9fefc504217e21c780e6 (diff) |
Convert glamor & glx to new *allocarray functions
v2: fixup whitespace
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Diffstat (limited to 'glamor/glamor_utils.c')
-rw-r--r-- | glamor/glamor_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glamor/glamor_utils.c b/glamor/glamor_utils.c index f06896096..d3e6fd3ff 100644 --- a/glamor/glamor_utils.c +++ b/glamor/glamor_utils.c @@ -31,7 +31,7 @@ glamor_solid_boxes(PixmapPtr pixmap, xRectangle *rect; int n; - rect = malloc(nbox * sizeof (xRectangle)); + rect = xallocarray(nbox, sizeof(xRectangle)); if (!rect) return; for (n = 0; n < nbox; n++) { |