]> granicus.if.org Git - postgresql/blobdiff - src/port/unsetenv.c
Centralize single quote escaping in src/port/quotes.c
[postgresql] / src / port / unsetenv.c
index 6509ff79f3e19479f9f7b93410bba3f6b1f381ec..291a4891edce8f3ecfbc6f6b76c228de0b69b3d4 100644 (file)
@@ -3,12 +3,12 @@
  * unsetenv.c
  *       unsetenv() emulation for machines without it
  *
- * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
+ * Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/port/unsetenv.c,v 1.5 2005/10/15 02:49:51 momjian Exp $
+ *       src/port/unsetenv.c
  *
  *-------------------------------------------------------------------------
  */
@@ -31,10 +31,11 @@ unsetenv(const char *name)
         * that we zap the actual environ member.  However, there are some libc
         * implementations (notably recent BSDs) that do not obey SUS but copy the
         * presented string.  This method fails on such platforms.      Hopefully all
-        * such platforms have unsetenv() and thus won't be using this hack.
+        * such platforms have unsetenv() and thus won't be using this hack. See:
+        * http://www.greenend.org.uk/rjk/2008/putenv.html
         *
-        * Note that repeatedly setting and unsetting a var using this code will leak
-        * memory.
+        * Note that repeatedly setting and unsetting a var using this code will
+        * leak memory.
         */
 
        envstr = (char *) malloc(strlen(name) + 2);