summaryrefslogtreecommitdiffstats
path: root/misc/shared-mime-info/files/patch-update-mime-database.c
blob: d591c7c9e13d2e4976b0e6c13b43644038a55044 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- update-mime-database.c.orig Fri Dec  3 15:46:28 2004
+++ update-mime-database.c  Fri Mar 25 14:51:30 2005
@@ -408,7 +408,8 @@
        }
    }
 
-   xmlFree(lang);
+   if (lang)
+       xmlFree(lang);
 }
 
 /* 'node' is a <mime-type> node from a source file, whose type is 'type'.
@@ -1458,7 +1459,7 @@
 
    env = getenv("XDG_DATA_DIRS");
    if (!env)
-       env = "/usr/local/share/:/usr/share/";
+       env = "/usr/local/share/";
    dirs = g_strsplit(env, ":", 0);
    g_return_if_fail(dirs != NULL);
    for (n = 0; dirs[n]; n++)