summaryrefslogtreecommitdiffstats
path: root/src/qt_qt_wrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qt_qt_wrapper.cpp')
-rw-r--r--src/qt_qt_wrapper.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qt_qt_wrapper.cpp b/src/qt_qt_wrapper.cpp
index 3767c08..b06161a 100644
--- a/src/qt_qt_wrapper.cpp
+++ b/src/qt_qt_wrapper.cpp
@@ -413,7 +413,9 @@ void createTQApp()
initKdeSettings();
#ifndef USE_SOLARIS
- setenv("SESSION_MANAGER", sessionEnv, 1);
+ if (sessionEnv) {
+ setenv("SESSION_MANAGER", sessionEnv, 1);
+ }
#else
char *tempEnv=(char *)malloc(strlen(sessionEnv)+strlen("SESSION_MANAGER")+2);
sprintf(tempEnv, "SESSION_MANAGER=%s", sessionEnv);