mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-25 03:32:12 +01:00
Merge branch 'backport-2708-xdgmime-fix-glib-2-72' into 'glib-2-72'
Backport !2708 “xdgmime: Fix broken file:// content type lookups for webkitgtk” to glib-2-72 See merge request GNOME/glib!2720
This commit is contained in:
commit
55828ce5bf
@ -568,17 +568,17 @@ cache_glob_lookup_suffix (const char *file_name,
|
|||||||
n_entries = GET_UINT32 (cache->buffer, list_offset);
|
n_entries = GET_UINT32 (cache->buffer, list_offset);
|
||||||
offset = GET_UINT32 (cache->buffer, list_offset + 4);
|
offset = GET_UINT32 (cache->buffer, list_offset + 4);
|
||||||
|
|
||||||
n = cache_glob_node_lookup_suffix (cache,
|
n += cache_glob_node_lookup_suffix (cache,
|
||||||
n_entries, offset,
|
n_entries, offset,
|
||||||
file_name, len,
|
file_name, len,
|
||||||
ignore_case,
|
ignore_case,
|
||||||
mime_types,
|
mime_types + n,
|
||||||
n_mime_types);
|
n_mime_types - n);
|
||||||
if (n > 0)
|
if (n == n_mime_types)
|
||||||
return n;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int compare_mime_weight (const void *a, const void *b)
|
static int compare_mime_weight (const void *a, const void *b)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user