summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sesman/chansrv/chansrv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sesman/chansrv/chansrv.c b/sesman/chansrv/chansrv.c
index af2f6957..29e8c106 100644
--- a/sesman/chansrv/chansrv.c
+++ b/sesman/chansrv/chansrv.c
@@ -1534,7 +1534,9 @@ main(int argc, char **argv)
display_text = g_getenv("DISPLAY");
LOGM((LOG_LEVEL_INFO, "main: DISPLAY env var set to %s", display_text));
- get_display_num_from_display(display_text);
+
+ if (display_text)
+ get_display_num_from_display(display_text);
if (g_display_num == 0)
{