]> git.lyx.org Git - lyx.git/commitdiff
environment.cpp: MSVC compile fix
authorUwe Stöhr <uwestoehr@lyx.org>
Fri, 15 Feb 2013 15:28:02 +0000 (16:28 +0100)
committerUwe Stöhr <uwestoehr@lyx.org>
Fri, 15 Feb 2013 15:28:02 +0000 (16:28 +0100)
MSVC told me
"environment.cpp(139): error C4716: 'lyx::support::unsetEnv' : must return a value"

src/support/environment.cpp

index 6deb23064d9a9d3d5a7ce9d4ae273152fdd1a0d1..dfdc2d4867c804d63ff1b4fa2dc65b9bc680ac18 100644 (file)
@@ -132,7 +132,7 @@ bool unsetEnv(string const & name)
        return unsetenv(name.c_str()) == 0;
 #elif defined(HAVE_PUTENV)
        // This is OK with MSVC and MinGW at least.
-       putenv((name + "=").c_str()) == 0;
+       return putenv((name + "=").c_str()) == 0;
 #else
 #error No environment-unsetting function has been defined.
 #endif