[gnome-packagekit] Fix a possible crash if X is misbehaving. Spotted by clang



commit 6d986283cfb8e6cb0e4eb531c1cb690dc20b5130
Author: Richard Hughes <richard hughsie com>
Date:   Mon Sep 7 10:16:12 2009 +0100

    Fix a possible crash if X is misbehaving. Spotted by clang

 src/gpk-x11.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gpk-x11.c b/src/gpk-x11.c
index 2ad410b..1abb8f8 100644
--- a/src/gpk-x11.c
+++ b/src/gpk-x11.c
@@ -150,7 +150,7 @@ gpk_x11_get_title (GpkX11 *x11)
 	gchar *title = NULL;
 	Atom atom = None;
 	Atom atom_type = None;
-	gchar *data;
+	gchar *data = NULL;
 	Atom type;
 	gint format;
 	gulong nitems;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]