diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/yawa.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -305,6 +305,10 @@ main(signed argc, char **argv) Pixmap pixmap; Imlib_Color_Modifier modifier = NULL; _display = XOpenDisplay(NULL); + if (!_display) { + fprintf(stderr, "X display could not be opened\n"); + exit(1); + } for (screen = 0; screen < ScreenCount(_display); screen++) { display = XOpenDisplay(NULL); |