Marco Trevisan (Treviño) 3057273816 glocalfileinfo: Ensure we always sniff some data to get the content type
In case the XDG database is not initialized yet we may try to sniff a
0-length data, making our content-type routines to mark non-empty files
as `application/x-zerosize`.

This is wrong, so in case the sniff size is not set, let's just
try to read the default value. To avoid false-application/x-zerosize
results (that are not something we want as per legacy assumptions).

See: https://bugzilla.gnome.org/show_bug.cgi?id=755795

Fixes: https://gitlab.gnome.org/GNOME/glib/-/issues/2742
2022-10-19 10:11:43 +01:00
..
2022-06-17 08:49:03 -05:00
2022-06-23 10:46:45 +01:00
2022-05-18 14:01:43 +00:00
2022-08-05 16:02:09 -05:00
2022-06-09 17:08:42 +02:00
2022-06-23 10:46:45 +01:00