[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Out of date comment in setenv.c?

From: Reuben Thomas
Subject: Out of date comment in setenv.c?
Date: Fri, 10 Feb 2017 12:10:47 +0000

In setenv.c, it says 

/* This function is used by 'setenv' and 'putenv'.  The difference between
   the two functions is that for the former must create a new string which
   is then placed in the environment, while the argument of 'putenv'
   must be used directly.  This is all complicated by the fact that we try
   to reuse values once generated for a 'setenv' call since we can never
   free the strings.  */
__add_to_environ (const char *name, const char *value, const char *combined,
                  int replace)

However, I can't see that this function is called anywhere else (specifically, not in putenv.c), nor that it ever did (but maybe it's indirect?).

In short, could the text "and 'putenv'" be removed or clarified, please?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]