blob: bea38c5677ac5726fb5869214a7842697ab6dc78 (
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 2007-06-27 15:46:53.000000000 -0400
+++ update-mime-database.c 2007-08-09 15:21:39.000000000 -0400
@@ -445,7 +445,8 @@ static void remove_old(Type *type, xmlNo
}
}
- xmlFree(lang);
+ if (lang)
+ xmlFree(lang);
}
/* 'node' is a <mime-type> node from a source file, whose type is 'type'.
@@ -1510,7 +1511,7 @@ static void check_in_path_xdg_data(const
env = getenv("XDG_DATA_DIRS");
if (!env)
- env = "/usr/local/share/"PATH_SEPARATOR"/usr/share/";
+ env = "/usr/local/gnome/share/"PATH_SEPARATOR"/usr/local/share/"PATH_SEPARATOR"/usr/share/";
dirs = g_strsplit(env, PATH_SEPARATOR, 0);
g_return_if_fail(dirs != NULL);
for (n = 0; dirs[n]; n++)
|