Bugzilla #1980, https://bugs.freedesktop.org/show_bug.cgi?id=1980 Make location of XErrorDB configurable

This commit is contained in:
Alexander Gottwald 2004-12-01 13:06:55 +00:00
parent 11a03ab908
commit 03940d7330

View file

@ -146,9 +146,13 @@ XGetErrorDatabaseText(
mutex unlocked. */
XrmDatabase temp_db;
int do_destroy;
const char *dbname;
XrmInitialize();
temp_db = XrmGetFileDatabase(ERRORDB);
dbname = getenv("XERRORDB");
if (!dbname)
dbname = ERRORDB;
temp_db = XrmGetFileDatabase(dbname);
_XLockMutex(_Xglobal_lock);
if (!db) {