[kde-freebsd] branches/KDE/3.5/kdebase/kdesu/kdesu
Adriaan de Groot
groot at kde.org
Tue Nov 13 16:10:52 CET 2007
SVN commit 736127 by adridg:
Avoid NULL-pointer deref in setenv(), FBSD PR 118007
CCMAIL: kde at freebsd.org
M +4 -1 kdesu.cpp
--- branches/KDE/3.5/kdebase/kdesu/kdesu/kdesu.cpp #736126:736127
@@ -113,7 +113,10 @@
unsetenv( "SESSION_MANAGER" );
KApplication app;
// but propagate it to the started app
- setenv( "SESSION_MANAGER", session_manager.data(), 1 );
+ if (session_manager.data())
+ {
+ setenv( "SESSION_MANAGER", session_manager.data(), 1 );
+ }
{
KStartupInfoId id;
More information about the kde-freebsd
mailing list