diff options
author | Michael Nottebrock <lofi@FreeBSD.org> | 2007-11-15 07:56:44 +0000 |
---|---|---|
committer | Michael Nottebrock <lofi@FreeBSD.org> | 2007-11-15 07:56:44 +0000 |
commit | 28aa3029339327ef71b515a789af8c7e9b109688 (patch) | |
tree | 3346d19247294c8659d0d655225a16a51ea43d5a /x11/kde4-runtime | |
parent | Build fix on 7/amd64, ports cluster. (diff) |
Avoid null-pointer dereference in kdesu
PR: ports/118007
Approved by: portmgr (Pav)
Diffstat (limited to 'x11/kde4-runtime')
-rw-r--r-- | x11/kde4-runtime/files/patch-kdesu_kdesu-kdesu.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/x11/kde4-runtime/files/patch-kdesu_kdesu-kdesu.cpp b/x11/kde4-runtime/files/patch-kdesu_kdesu-kdesu.cpp new file mode 100644 index 000000000000..a289f1d1c74e --- /dev/null +++ b/x11/kde4-runtime/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; |