PATCH: 3.3: missing '=' in calls to putenv

Nathan Sidwell nathan@codesourcery.com
Sat Apr 12 10:10:00 GMT 2003


Kean Johnston wrote:
> 2003-04-11  Kean Johnston  <jkj@sco.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@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org




More information about the Gcc-patches mailing list