mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-08 10:18:04 +02:00
First (dummy) entry of compose caches was not initialized and thus contained varying garbage.
This commit is contained in:
parent
b0edfb8df1
commit
f442dcaa56
1 changed files with 6 additions and 0 deletions
|
|
@ -465,6 +465,12 @@ _XimWriteCachedDefaultTree(
|
|||
if (! b->utf8 && ! (b->utf8 = Xmalloc (1)) )
|
||||
return;
|
||||
|
||||
/* First entry is always unused */
|
||||
memset (b->tree, 0, sizeof(DefTree));
|
||||
b->mb[0] = 0;
|
||||
b->wc[0] = 0;
|
||||
b->utf8[0] = 0;
|
||||
|
||||
m = Xmalloc (msize);
|
||||
m->id = XIM_CACHE_MAGIC;
|
||||
m->version = XIM_CACHE_VERSION;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue