To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=94215
Issue #|94215
Summary|putenv is stinky
Component|gsl
Version|DEV300m30
Platform|All
URL|
OS/Version|Linux
Status|NEW
Status whiteboard|
Keywords|
Resolution|
Issue type|PATCH
Priority|P3
Subcomponent|code
Assigned to|pl
Reported by|cmc
------- Additional comments from [EMAIL PROTECTED] Tue Sep 23 09:41:44 +0000
2008 -------
putenv is a bit stinky.
"On some systems `putenv ("FOO")' removes `FOO' from the
environment, but this is not standard usage and it dumps core on
some systems (e.g., AIX)."
"The putenv() function does not create a copy of the string supplied
to it as an argument; rather, it inserts a pointer to the string into the
environment array"
So we leak with our putenv of a malloced string, but then
"some systems make a copy of it instead (e.g., glibc 2.0, or BSD)."
Its all a bit hideous, attached is a suggested patch to use setenv which is a
more reliable thingy
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]