*/
if (p->verbose_p)
fprintf(stderr,
- "%s: no suitable visuals for these programs.\n",
- blurb());
+ "%s: %d: no programs enabled, or no suitable visuals.\n",
+ blurb(), ssi->number);
return;
}
else
if (putenv (npath))
abort ();
+
+ /* don't free (npath) -- 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 && DEFAULT_PATH_PREFIX */
}
#ifdef HAVE_PUTENV
if (putenv (ndpy))
abort ();
+ /* do not free(ndpy) -- see above. */
#endif /* HAVE_PUTENV */
}