environment.cpp: MSVC compile fix

MSVC told me
"environment.cpp(139): error C4716: 'lyx::support::unsetEnv' : must return a value"
This commit is contained in:
Uwe Stöhr 2013-02-15 16:28:02 +01:00
parent b6e4c709e3
commit ac7d08cb32

View 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