blob: 93de75f0cf30c4b6ac4c22ca5c21fb9d3e8e083f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
$NetBSD: patch-ac,v 1.1 2008/01/29 02:00:22 bjs Exp $
Fix warnings.
--- src/XShape.c.orig 2006-07-11 14:05:14.000000000 -0400
+++ src/XShape.c
@@ -461,7 +461,7 @@ XRectangle *XShapeGetRectangles (
}
*count = rep.nrects;
*ordering = rep.ordering;
- rects = 0;
+ rects = NULL;
if (*count) {
xrects = (xRectangle *) Xmalloc (*count * sizeof (xRectangle));
rects = (XRectangle *) Xmalloc (*count * sizeof (XRectangle));
@@ -471,7 +471,7 @@ XRectangle *XShapeGetRectangles (
if (rects)
Xfree (rects);
_XEatData (dpy, *count * sizeof (xRectangle));
- rects = 0;
+ rects = NULL;
*count = 0;
} else {
_XRead (dpy, (char *) xrects, *count * sizeof (xRectangle));
|