mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-08 21:58:05 +02:00
Bugzilla #1980, https://bugs.freedesktop.org/show_bug.cgi?id=1980 Make location of XErrorDB configurable
This commit is contained in:
parent
11a03ab908
commit
03940d7330
1 changed files with 5 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue