public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
From: Ulrich Drepper <drepper@cygnus.com>
To: hjl@lucon.org (H.J. Lu)
Cc: libc-hacker@sourceware.cygnus.com (GNU C Library)
Subject: Re: Setenv/putenv changes break existing code.
Date: Mon, 02 Aug 1999 18:40:00 -0000	[thread overview]
Message-ID: <m3lnbtir1e.fsf@localhost.localnet> (raw)
In-Reply-To: <19990803010000.E96D457BA@ocean.lucon.org>

hjl@lucon.org (H.J. Lu) writes:

> [...] In either case, the string pointed to
> by string becomes part of the environment, so altering the string will
> change the environment. The space used by string is no longer used
> once a new string-defining name is passed to putenv(). 
> 
> It seems to me that it is ok to free 'p' since it is no longer used
> when returning from putenv ().

You are quoting the standard and still don't see that your argument is
wrong?  The putenv() code as it is now is correct.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------

  reply	other threads:[~1999-08-02 18:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-02 18:01 H.J. Lu
1999-08-02 18:40 ` Ulrich Drepper [this message]
1999-08-03 16:08   ` Cristian Gafton
1999-08-03 16:19     ` Ulrich Drepper
1999-08-02 18:48 ` Geoff Keating

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3lnbtir1e.fsf@localhost.localnet \
    --to=drepper@cygnus.com \
    --cc=hjl@lucon.org \
    --cc=libc-hacker@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).