After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 581811 - Gio::content_type_guess() miss the version with a NULL filename
Gio::content_type_guess() miss the version with a NULL filename
Status: RESOLVED FIXED
Product: glibmm
Classification: Bindings
Component: giomm
2.20.x
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2009-05-08 01:15 UTC by Hubert Figuiere (:hub)
Modified: 2010-01-11 04:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Bug 581811 - Gio::content_type_guess() miss the version with a NULL filename (2.47 KB, patch)
2010-01-06 06:07 UTC, Jonathon Jongsma
none Details | Review

Description Hubert Figuiere (:hub) 2009-05-08 01:15:49 UTC
Gio::content_type_guess() miss the version with a NULL filename amongst the overloads.
Comment 1 Hubert Figuiere (:hub) 2009-05-08 01:16:32 UTC
OR it could pass NULL if the filename is empty.
Comment 2 Jonathon Jongsma 2010-01-06 06:07:17 UTC
Created attachment 150882 [details] [review]
Bug 581811 - Gio::content_type_guess() miss the version with a NULL filename

Pass NULL to the C function when the filename is an empty string.  The
alternative of providing an overloaded function without the filename parameter
would have resulted in 6 overloads of this function, which is just too much, so
I chose this path instead.
Comment 3 Jonathon Jongsma 2010-01-11 04:29:42 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.