Martin Pitt 139c1ce988 gio/tests/contenttype: Call g_content_type_guess() with valid data len
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
2012-06-27 16:00:27 +02:00
..
2012-06-12 07:09:53 -04:00
2012-06-25 19:37:05 -04:00
2010-07-05 00:56:12 -04:00
2012-06-04 06:04:26 -04:00
2012-04-30 09:28:42 -04:00
2011-07-27 16:23:33 -04:00
2011-07-27 16:23:33 -04:00
2011-07-27 16:23:33 -04:00
2011-07-27 16:23:33 -04:00
2011-07-27 16:23:33 -04:00
2010-04-17 01:48:05 -04:00
2010-06-09 10:32:36 +02:00
2012-06-04 06:04:29 -04:00
2012-06-22 10:32:25 -04:00
2012-04-20 15:02:48 +02:00
2012-06-04 06:04:28 -04:00
2012-04-08 10:24:51 -04:00
2011-10-16 21:41:15 -04:00
2011-07-27 16:23:33 -04:00
2011-07-27 16:23:33 -04:00
2011-09-26 16:54:23 -04:00
2011-07-27 16:23:33 -04:00
2010-04-17 01:48:05 -04:00
2012-06-21 15:13:06 -04:00
2010-09-03 15:44:28 -04:00
2012-01-13 17:12:53 +01:00
2012-06-04 06:04:29 -04:00
2011-10-13 01:00:57 -04:00
2011-10-13 01:00:57 -04:00
2012-01-13 17:12:53 +01:00
2012-01-13 17:12:53 +01:00
2012-01-13 17:12:53 +01:00
2012-01-13 17:12:53 +01:00
2012-01-13 17:12:53 +01:00
2012-01-13 17:12:53 +01:00
2012-06-04 06:04:29 -04:00
2011-10-16 16:09:33 -04:00