blob: ab5deebc424a3e57e928ceed8972a1583f115265 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
http://pkgs.fedoraproject.org/cgit/xscreensaver.git/tree/xscreensaver-5.12-test-passwd-segv-tty.patch
--- driver/passwd.c
+++ driver/passwd.c
@@ -205,7 +205,7 @@
{
# ifdef HAVE_SYSLOG
struct passwd *pw = getpwuid (getuid ());
- char *d = DisplayString (si->dpy);
+ char *d = (si->dpy ? DisplayString (si->dpy) : 0);
char *u = (pw && pw->pw_name ? pw->pw_name : "???");
int opt = 0;
int fac = 0;
|