diff options
-rw-r--r-- | src/x11util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/x11util.c b/src/x11util.c index dc230b3..c630dc3 100644 --- a/src/x11util.c +++ b/src/x11util.c @@ -76,7 +76,7 @@ static void setScreenDpmsFork( const char *xauth, const char *display, int mode Display *dpy; int dummy; - if ( xauth[0] != '\0' && strcmp( xauth, "-" ) != 0 ) { + if ( xauth != NULL && xauth[0] != '\0' && strcmp( xauth, "-" ) != 0 ) { setenv( "XAUTHORITY", xauth, 1 ); } dpy = XOpenDisplay( display ); |