aboutsummaryrefslogtreecommitdiff
path: root/src/messages-service.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/messages-service.c')
-rw-r--r--src/messages-service.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/messages-service.c b/src/messages-service.c
index 1a5a196..0ebab0b 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -306,13 +306,8 @@ desktop_file_from_keyfile (const gchar * definition_file)
}
gchar * desktopfile = g_key_file_get_string(keyfile, DESKTOP_FILE_GROUP, DESKTOP_FILE_KEY_DESKTOP, &error);
- gchar * desktop = NULL;
- if (desktopfile != NULL) {
- desktop = g_strdup(desktopfile);
- }
-
g_key_file_free(keyfile);
- return desktop;
+ return desktopfile;
}
/* Add a definition file into the black list and eclipse