This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: 3.3: missing '=' in calls to putenv
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: Kean Johnston <jkj at sco dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 12 Apr 2003 11:09:53 +0100
- Subject: Re: PATCH: 3.3: missing '=' in calls to putenv
- Organization: Codesourcery LLC
- References: <010f01c3005e$7920bba0$03419384@shrike>
Kean Johnston wrote:
2003-04-11 Kean Johnston <jkj at sco dot com>
* tlink.c: Added missing '=' to putenv arguments
- putenv (xstrdup ("COMPILER_PATH"));
- putenv (xstrdup ("LIBRARY_PATH"));
+ putenv (xstrdup ("COMPILER_PATH="));
+ putenv (xstrdup ("LIBRARY_PATH="));
What systems make the xstrdup necessary? I thought putenv ("name=") was
valid, it being a string constant.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
The voices in my head said this was stupid too
nathan at codesourcery dot com : http://www.cs.bris.ac.uk/~nathan/ : nathan at acm dot org