diff options
-rw-r--r-- | src/messages-service.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/messages-service.c b/src/messages-service.c index 585589a..cdfdb34 100644 --- a/src/messages-service.c +++ b/src/messages-service.c @@ -304,13 +304,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 |