diff options
Diffstat (limited to 'misc/shared-mime-info/files/patch-update-mime-database.c')
-rw-r--r-- | misc/shared-mime-info/files/patch-update-mime-database.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/misc/shared-mime-info/files/patch-update-mime-database.c b/misc/shared-mime-info/files/patch-update-mime-database.c new file mode 100644 index 000000000..3fb1a99b8 --- /dev/null +++ b/misc/shared-mime-info/files/patch-update-mime-database.c @@ -0,0 +1,21 @@ +--- update-mime-database.c.orig 2007-07-02 04:00:13.000000000 -0500 ++++ update-mime-database.c 2008-01-28 23:42:30.000000000 -0600 +@@ -445,7 +446,8 @@ + } + } + +- xmlFree(lang); ++ if (lang) ++ xmlFree(lang); + } + + /* 'node' is a <mime-type> node from a source file, whose type is 'type'. +@@ -1510,7 +1512,7 @@ + + env = getenv("XDG_DATA_DIRS"); + if (!env) +- env = "/usr/local/share/"PATH_SEPARATOR"/usr/share/"; ++ env = "/usr/local/share/"; + dirs = g_strsplit(env, PATH_SEPARATOR, 0); + g_return_if_fail(dirs != NULL); + for (n = 0; dirs[n]; n++) |