Skip to content

Commit

Permalink
Fix 'Unset' option for custom environmental variables
Browse files Browse the repository at this point in the history
  • Loading branch information
agiudiceandrea authored and nyalldawson committed Jul 18, 2022
1 parent b8cc5aa commit 11b0227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/main.cpp
Expand Up @@ -1302,7 +1302,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
Expand Down

0 comments on commit 11b0227

Please sign in to comment.