summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Wong <gtw@gnu.org>2009-08-29 21:02:14 -0600
committerGary Wong <gtw@gnu.org>2009-08-29 21:02:14 -0600
commitf62ba0d2b29be17191f17c8847036febb71aa79e (patch)
tree6a5013baf22619d43aab47b86564dfe5b19b2bcc
parentdd0c6b4a8321be8f50d06b6a2c67abb63f349ba2 (diff)
Use xmalloc() instead of malloc().
-rw-r--r--ChangeLog4
-rw-r--r--frame.c8
2 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index b1fe3a5..fe10886 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2009-08-29 Gary Wong <gtw@gnu.org>
+ * frame.c (build_edges): Use xmalloc() instead of malloc().
+
+2009-08-29 Gary Wong <gtw@gnu.org>
+
* managed.c (managed_property_change): Use _NET_WM_NAME in preference
to WM_NAME.
(async_get_property): New function.
diff --git a/frame.c b/frame.c
index 5665049..271c6b5 100644
--- a/frame.c
+++ b/frame.c
@@ -79,10 +79,10 @@ static void build_edges( int screen ) {
assert( !l_edges );
assert( !r_edges );
- t_edges = malloc( ( windows.used + 1 ) * sizeof *t_edges );
- b_edges = malloc( ( windows.used + 1 ) * sizeof *b_edges );
- l_edges = malloc( ( windows.used + 1 ) * sizeof *l_edges );
- r_edges = malloc( ( windows.used + 1 ) * sizeof *r_edges );
+ t_edges = xmalloc( ( windows.used + 1 ) * sizeof *t_edges );
+ b_edges = xmalloc( ( windows.used + 1 ) * sizeof *b_edges );
+ l_edges = xmalloc( ( windows.used + 1 ) * sizeof *l_edges );
+ r_edges = xmalloc( ( windows.used + 1 ) * sizeof *r_edges );
t_edges[ 0 ].x_min = b_edges[ 0 ].x_min = 0;
t_edges[ 0 ].x_max = b_edges[ 0 ].x_max =