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 562613 - Missing const modifier in string parameters
Missing const modifier in string parameters
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gio
2.19.x
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
: 529034 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-11-28 20:45 UTC by Jürg Billeter
Modified: 2009-03-03 15:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (8.29 KB, patch)
2008-11-28 20:46 UTC, Jürg Billeter
none Details | Review

Description Jürg Billeter 2008-11-28 20:45:57 UTC
A few functions in GIO use char * parameters instead of const char * parameters even though they don't modify or free the string. As a consequence, gobject-introspection misdetects ownership transfer for the parameters.
Comment 1 Jürg Billeter 2008-11-28 20:46:28 UTC
Created attachment 123631 [details] [review]
Proposed patch

Ok to commit?
Comment 2 Paolo Borelli 2009-01-13 18:25:36 UTC
*** Bug 529034 has been marked as a duplicate of this bug. ***
Comment 3 Alexander Larsson 2009-03-03 15:50:59 UTC
commited.