summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Untz <vuntz@gnome.org>2010-09-10 04:20:16 +0200
committerVincent Untz <vuntz@gnome.org>2010-09-10 04:20:16 +0200
commitd6e42384c85fe45b8ac058a1606039046213655d (patch)
tree8bae26b19148057106979c41e7555e54253224eb
parent2291687ae20368c303f2ca30e50f48d100984f3f (diff)
downloaddesktop-file-utils-d6e42384c85fe45b8ac058a1606039046213655d.tar.gz
Always output values as lists in the cache from update-desktop-database
When there was only one desktop file for a mime type, we were not adding the trailing ;.
-rw-r--r--src/update-desktop-database.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/update-desktop-database.c b/src/update-desktop-database.c
index a83fa00..55ea7fd 100644
--- a/src/update-desktop-database.c
+++ b/src/update-desktop-database.c
@@ -298,9 +298,7 @@ add_mime_type (const char *mime_type, GList *desktop_files, FILE *f)
desktop_file = desktop_file->next)
{
g_string_append (list, (const char *) desktop_file->data);
-
- if (desktop_files->next != NULL)
- g_string_append_c (list, ';');
+ g_string_append_c (list, ';');
}
g_string_append_c (list, '\n');