diff options
author | lofi <lofi@FreeBSD.org> | 2007-11-15 15:56:44 +0800 |
---|---|---|
committer | lofi <lofi@FreeBSD.org> | 2007-11-15 15:56:44 +0800 |
commit | 6f946385e1c7f4067e4437036365a754197d2e32 (patch) | |
tree | fc0a82db59c20b7962f72ab893738e32c3b34ab7 /x11/kdebase3 | |
parent | 3b79af922e89c20d61b29f42a6a0f93a1133f439 (diff) | |
download | freebsd-ports-gnome-6f946385e1c7f4067e4437036365a754197d2e32.tar.gz freebsd-ports-gnome-6f946385e1c7f4067e4437036365a754197d2e32.tar.zst freebsd-ports-gnome-6f946385e1c7f4067e4437036365a754197d2e32.zip |
Avoid null-pointer dereference in kdesu
PR: ports/118007
Approved by: portmgr (Pav)
Diffstat (limited to 'x11/kdebase3')
-rw-r--r-- | x11/kdebase3/files/patch-kdesu_kdesu-kdesu.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/x11/kdebase3/files/patch-kdesu_kdesu-kdesu.cpp b/x11/kdebase3/files/patch-kdesu_kdesu-kdesu.cpp new file mode 100644 index 000000000000..a289f1d1c74e --- /dev/null +++ b/x11/kdebase3/files/patch-kdesu_kdesu-kdesu.cpp @@ -0,0 +1,14 @@ +--- kdesu/kdesu/kdesu.cpp 2006/04/12 13:14:22 529044 ++++ kdesu/kdesu/kdesu.cpp 2007/11/13 15:10:52 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; |