-/* xscreensaver, Copyright (c) 2001 by Jamie Zawinski <jwz@jwz.org>
+/* xscreensaver, Copyright (c) 2001, 2002 by Jamie Zawinski <jwz@jwz.org>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
x_ehandler (Display *dpy, XErrorEvent *error)
{
fprintf (stderr, "\nX error in %s:\n", progname);
- if (XmuPrintDefaultErrorMessage (dpy, error, stderr))
- exit (-1);
- else
- fprintf (stderr, " (nonfatal.)\n");
+ XmuPrintDefaultErrorMessage (dpy, error, stderr);
+ exit (-1);
return 0;
}
if (putenv (ndpy))
abort ();
+
+ /* don't free (ndpy) -- some implementations of putenv (BSD
+ 4.4, glibc 2.0) copy the argument, but some (libc4,5, glibc
+ 2.1.2) do not. So we must leak it (and/or the previous
+ setting). Yay.
+ */
}
# endif /* HAVE_PUTENV */