-
Martin Pitt authored
g_content_type_guess() requires specifying a valid data length. Fixes a segfault when running the test. Also add an explicit check for this and return XDG_MIME_TYPE_UNKNOWN when data_size is specified as -1, to avoid crashing. https://bugzilla.gnome.org/show_bug.cgi?id=674452
139c1ce9