diff options
author | Ray Strode <rstrode@redhat.com> | 2005-01-10 00:43:48 +0000 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2005-01-10 00:43:48 +0000 |
commit | b3ccf461e7a547f9404e58be5a9bcdfcd405de0c (patch) | |
tree | ebf6e6369da689aad49638b938ef5d0bd0adf561 | |
parent | 14f79f1ee66203e4b67080f7e1436cb751c5b22a (diff) |
NULL terminate default search path. Spotted by Mike Hearn <mike@navi.cx>
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>
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/update-desktop-database.c | 2 |
2 files changed, 8 insertions, 0 deletions
@@ -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; |