summaryrefslogtreecommitdiffstats
path: root/x11vnc/solid.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/solid.c')
-rw-r--r--x11vnc/solid.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/x11vnc/solid.c b/x11vnc/solid.c
index a171b89..d677fc2 100644
--- a/x11vnc/solid.c
+++ b/x11vnc/solid.c
@@ -561,6 +561,9 @@ char *dbus_session(void) {
if (dbus_env != NULL && strlen(dbus_env) > 0) {
return "";
}
+ if (!dpy) {
+ return "";
+ }
#if NO_X11
return "";
#else