Skip to content
Permalink
Browse files
Fix 'Unset' option for custom environmental variables
  • Loading branch information
agiudiceandrea authored and nyalldawson committed Jul 18, 2022
1 parent 905e565 commit 355b836159c1294a9f0521ed1f4431db06ad4d4c
Showing 1 changed file with 1 addition and 1 deletion.
@@ -1286,7 +1286,7 @@ int main( int argc, char *argv[] )
if ( systemEnvVars.contains( envVarName ) && envVarApply == QLatin1String( "unset" ) )
{
#ifdef Q_OS_WIN
putenv( envVarName.toUtf8().constData() );
putenv( QString( "%1=" ).arg( envVarName ).toUtf8().constData() );
#else
unsetenv( envVarName.toUtf8().constData() );
#endif

0 comments on commit 355b836

Please sign in to comment.