From 1384e268bce89a9b10b56bf59aa964ede3eeb6e2 Mon Sep 17 00:00:00 2001 From: Roman Moravcik Date: Wed, 13 Oct 2010 17:01:05 +0200 Subject: [PATCH] Fixed crash of control panel applet if no gconf keys are set. --- src/cl-cpapplet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cl-cpapplet.c b/src/cl-cpapplet.c index 6fc9c44..a0fbb13 100644 --- a/src/cl-cpapplet.c +++ b/src/cl-cpapplet.c @@ -365,8 +365,8 @@ load_configuration (CLLauncherAppletData *data) /* read aplication list from gconf */ application_list = gconf_get_string_list (data->gconf_client, "application_list"); if (application_list == NULL) { - application_list = g_slist_append (application_list, CAMERA_APPLICATION_DESKTOP_FILE); - application_list = g_slist_append (application_list, FLASHLIGHT_APPLET_DESKTOP_FILE); + application_list = g_slist_append (application_list, g_strdup (CAMERA_APPLICATION_DESKTOP_FILE)); + application_list = g_slist_append (application_list, g_strdup (FLASHLIGHT_APPLET_DESKTOP_FILE)); } for (entry = application_list; entry; entry = entry->next) { -- 1.7.9.5