summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2006-07-20 03:20:16 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-07-20 03:20:16 +0000
commited1f9073fffd397f9bd46403d43dca46f3b3ddc9 (patch)
tree581e06bbc98e7bb191a68038b25928c5c17c6916 /gtk
parentbbc45a6230aefa39d2b0aa1abcaf55f88b0473c1 (diff)
downloadgdk-pixbuf-ed1f9073fffd397f9bd46403d43dca46f3b3ddc9.tar.gz
fix bug #5241
Diffstat (limited to 'gtk')
-rw-r--r--gtk/xdgmime/ChangeLog6
-rw-r--r--gtk/xdgmime/xdgmimeglob.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/gtk/xdgmime/ChangeLog b/gtk/xdgmime/ChangeLog
index eb37db85e..f316e4b90 100644
--- a/gtk/xdgmime/ChangeLog
+++ b/gtk/xdgmime/ChangeLog
@@ -1,3 +1,9 @@
+2006-07-19 Matthias Clasen <mclasen@redhat.com>
+
+ * xdgmimeglob.c (_xdg_glob_hash_node_lookup_file_name):
+ Don't return NULL as a mimetype, ever, patch
+ by Yevgen Muntyan, bugs.freedesktop.org #5241
+
2006-07-02 Matthias Clasen <mclasen@redhat.com>
* === Released 2.10.0 ===
diff --git a/gtk/xdgmime/xdgmimeglob.c b/gtk/xdgmime/xdgmimeglob.c
index 72c19c352..95d9587ff 100644
--- a/gtk/xdgmime/xdgmimeglob.c
+++ b/gtk/xdgmime/xdgmimeglob.c
@@ -308,11 +308,13 @@ _xdg_glob_hash_node_lookup_file_name (XdgGlobHashNode *glob_hash_node,
if (*file_name == '\000')
{
n = 0;
- mime_types[n++] = node->mime_type;
+ if (node->mime_type)
+ mime_types[n++] = node->mime_type;
node = node->child;
while (n < n_mime_types && node && node->character == 0)
{
- mime_types[n++] = node->mime_type;
+ if (node->mime_type)
+ mime_types[n++] = node->mime_type;
node = node->next;
}
}