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 b8cc5aa commit 11b0227c55c22ba83a5605267e35e87567bbbf92
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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

0 comments on commit 11b0227

Please sign in to comment.