Merge pull request #212 from robertalks/devel
fix possible segfault in chansrv if DISPLAY is not set
This commit is contained in:
commit
4f60b58b17
@ -1534,6 +1534,8 @@ main(int argc, char **argv)
|
|||||||
|
|
||||||
display_text = g_getenv("DISPLAY");
|
display_text = g_getenv("DISPLAY");
|
||||||
LOGM((LOG_LEVEL_INFO, "main: DISPLAY env var set to %s", display_text));
|
LOGM((LOG_LEVEL_INFO, "main: DISPLAY env var set to %s", display_text));
|
||||||
|
|
||||||
|
if (display_text)
|
||||||
get_display_num_from_display(display_text);
|
get_display_num_from_display(display_text);
|
||||||
|
|
||||||
if (g_display_num == 0)
|
if (g_display_num == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user