steamcompmgr: still affect LD_PRELOAD if we strip everything from it
In cases where LD_PRELOAD only contained things we wanted to strip, we weren't actually setting the result and stripping nothing.
This commit is contained in:
parent
cdfe50d53b
commit
afccf2a4d1
1 changed files with 10 additions and 3 deletions
|
@ -2810,10 +2810,17 @@ steamcompmgr_main (int argc, char **argv)
|
|||
nice( g_nOldNice - g_nNewNice );
|
||||
}
|
||||
|
||||
// Set modified LD_PRELOAD
|
||||
if ( strNewPreload.empty() == false )
|
||||
// Set modified LD_PRELOAD if needed
|
||||
if ( pchCurrentPreload != nullptr )
|
||||
{
|
||||
setenv( "LD_PRELOAD", strNewPreload.c_str(), 1 );
|
||||
if ( strNewPreload.empty() == false )
|
||||
{
|
||||
setenv( "LD_PRELOAD", strNewPreload.c_str(), 1 );
|
||||
}
|
||||
else
|
||||
{
|
||||
unsetenv( "LD_PRELOAD" );
|
||||
}
|
||||
}
|
||||
|
||||
unsetenv( "ENABLE_VKBASALT" );
|
||||
|
|
Loading…
Reference in a new issue