[gnome-control-center/gnome-3-2] datetime: Make sure timezone is initialized in get_timezone_cb()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-2] datetime: Make sure timezone is initialized in get_timezone_cb()
- Date: Mon, 20 Feb 2012 10:22:30 +0000 (UTC)
commit cf998a8eaf6cd25c929c39b87d836218dcf46333
Author: Alexandre Rostovtsev <tetromino gentoo org>
Date: Tue Feb 14 04:21:05 2012 -0500
datetime: Make sure timezone is initialized in get_timezone_cb()
If date_time_mechanism_call_get_timezone_finish() fails, timezone is
left uninitialized, and attempting to free it at the end of
get_timezone_cb() results in a crash.
https://bugzilla.gnome.org/show_bug.cgi?id=670042
panels/datetime/cc-datetime-panel.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/datetime/cc-datetime-panel.c b/panels/datetime/cc-datetime-panel.c
index 555eaaa..413986e 100644
--- a/panels/datetime/cc-datetime-panel.c
+++ b/panels/datetime/cc-datetime-panel.c
@@ -553,7 +553,7 @@ get_timezone_cb (GObject *source,
{
CcDateTimePanel *self = user_data;
GtkWidget *widget;
- gchar *timezone;
+ gchar *timezone = NULL;
GError *error;
error = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]