Don't give up too early when collecting mime types
authorMatthias Clasen <mclasen@redhat.com>
Sun, 25 Oct 2009 06:55:46 +0000 (02:55 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 25 Oct 2009 06:55:46 +0000 (02:55 -0400)
commite63262d49d40a36060613fb1d0ed468ca5dddc19
tree60fc529b9dd487b4c67b3d0bece1fb9443c110b2
parent3dab24828edd8ebfd6d6c8bb20c181fc0d5650a1
Don't give up too early when collecting mime types

Since returning exactly one match has special significance, don't
give up matching before we've found at least 2 types. Also, make
sure that we don't return the same mime type more than once.
Bug 541236.
gio/xdgmime/xdgmimecache.c
gio/xdgmime/xdgmimeglob.c