]> git.lyx.org Git - lyx.git/commitdiff
Fix wrong comment (thanks Enrico)
authorGeorg Baum <baum@lyx.org>
Thu, 13 Mar 2014 20:02:41 +0000 (21:02 +0100)
committerGeorg Baum <baum@lyx.org>
Thu, 13 Mar 2014 20:02:41 +0000 (21:02 +0100)
src/support/environment.cpp

index ac5729bd977641b4739cc6c9eb4499c97022de96..813d418d9a9dcd2f8c418371ca6332bfbca92603 100644 (file)
@@ -136,8 +136,8 @@ bool unsetEnv(string const & name)
        return ::unsetenv(name.c_str()) == 0;
 #elif defined(HAVE_PUTENV)
        // This is OK with MSVC and MinGW at least.
-       // FIXME: According to http://pubs.opengroup.org/onlinepubs/9699919799/functions/putenv.html
-       //        the argument of putenv() needs to be static, see setEnv().
+       // The argument of putenv() does not need to be a static variable in this
+       // case, since the variable is removed from the environment.
        return ::putenv(const_cast<char*>((name + "=").c_str())) == 0;
 #else
 #error No environment-unsetting function has been defined.