[mutter] Fix use of uninitialized memory in edge-resistance.c
- From: Colin Walters <walters src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [mutter] Fix use of uninitialized memory in edge-resistance.c
- Date: Mon, 10 Aug 2009 03:43:23 +0000 (UTC)
commit 422cd1fbbf3e18db22fa6bfefa7d487e86adb17d
Author: Colin Walters <walters verbum org>
Date: Thu Aug 6 09:39:00 2009 -0400
Fix use of uninitialized memory in edge-resistance.c
g_new bad, g_new0 good.
src/core/edge-resistance.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/core/edge-resistance.c b/src/core/edge-resistance.c
index ac59aff..2dcb415 100644
--- a/src/core/edge-resistance.c
+++ b/src/core/edge-resistance.c
@@ -844,7 +844,7 @@ cache_edges (MetaDisplay *display,
* 2nd: Allocate the edges
*/
g_assert (display->grab_edge_resistance_data == NULL);
- display->grab_edge_resistance_data = g_new (MetaEdgeResistanceData, 1);
+ display->grab_edge_resistance_data = g_new0 (MetaEdgeResistanceData, 1);
edge_data = display->grab_edge_resistance_data;
edge_data->left_edges = g_array_sized_new (FALSE,
FALSE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]