forked from AuroraMiddleware/gtk
fix bug #5241
This commit is contained in:
parent
bbc45a6230
commit
ed1f9073ff
@ -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 ===
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user