summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--src/update-desktop-database.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index e5bc5af..55805ba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-01-09 Ray Strode <rstrode@redhat.com>
+
+ * src/update-desktop-database.c:
+ NULL terminate default search path. Spotted by
+ Mike Hearn <mike@navi.cx>
+
2004-11-23 Mark McLoughlin <mark@skynet.ie>
Patch from Ville Skyttä <ville.skytta@iki.fi>
diff --git a/src/update-desktop-database.c b/src/update-desktop-database.c
index 3c6210d..b7e7479 100644
--- a/src/update-desktop-database.c
+++ b/src/update-desktop-database.c
@@ -449,6 +449,8 @@ get_default_search_path (void)
for (i = 0; data_dirs[i] != NULL; i++)
args[i] = g_build_filename (data_dirs[i], "applications", NULL);
+ args[i] = NULL;
+
g_strfreev (data_dirs);
return (const char **) args;