From 28aa3029339327ef71b515a789af8c7e9b109688 Mon Sep 17 00:00:00 2001 From: Michael Nottebrock Date: Thu, 15 Nov 2007 07:56:44 +0000 Subject: Avoid null-pointer dereference in kdesu PR: ports/118007 Approved by: portmgr (Pav) --- x11/kdebase4-workspace/files/patch-kdesu_kdesu-kdesu.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 x11/kdebase4-workspace/files/patch-kdesu_kdesu-kdesu.cpp (limited to 'x11/kdebase4-workspace') diff --git a/x11/kdebase4-workspace/files/patch-kdesu_kdesu-kdesu.cpp b/x11/kdebase4-workspace/files/patch-kdesu_kdesu-kdesu.cpp new file mode 100644 index 000000000000..a289f1d1c74e --- /dev/null +++ b/x11/kdebase4-workspace/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; -- cgit v1.2.3