[glib/new-gsettings] Fix get/set property of GSettingsBackend
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/new-gsettings] Fix get/set property of GSettingsBackend
- Date: Tue, 13 Apr 2010 19:57:59 +0000 (UTC)
commit 23907aaae8efc15e28723e08309ef0003f3a33af
Author: Vincent Untz <vuntz gnome org>
Date: Tue Apr 13 15:56:41 2010 -0400
Fix get/set property of GSettingsBackend
The backend variable needs to be initialized.
gio/gsettingsbackend.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gsettingsbackend.c b/gio/gsettingsbackend.c
index 28c4320..f10d3d4 100644
--- a/gio/gsettingsbackend.c
+++ b/gio/gsettingsbackend.c
@@ -279,7 +279,7 @@ g_settings_backend_set_property (GObject *object,
const GValue *value,
GParamSpec *pspec)
{
- GSettingsBackend *backend;
+ GSettingsBackend *backend = G_SETTINGS_BACKEND (object);
switch (prop_id)
{
@@ -298,7 +298,7 @@ g_settings_backend_get_property (GObject *object,
GValue *value,
GParamSpec *pspec)
{
- GSettingsBackend *backend;
+ GSettingsBackend *backend = G_SETTINGS_BACKEND (object);
switch (prop_id)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]