]> 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 bdfb3f6814326f932823883126d222765934060a..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.6 2005/11/22 18:17:34 momjian Exp $
+ *       src/port/unsetenv.c
  *
  *-------------------------------------------------------------------------
  */
@@ -31,7 +31,8 @@ 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.