From: Jörg Sonnenberger <[email protected]> The vmods member of XkbNamesPtr is an array and thus never NULL.
Signed-off-by: Thomas Klausner <[email protected]> --- src/cout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cout.c b/src/cout.c index aa1b22d..9e09fd9 100644 --- a/src/cout.c +++ b/src/cout.c @@ -45,7 +45,7 @@ WriteCHdrVMods(FILE *file, Display *dpy, XkbDescPtr xkb) { register int i, nOut; - if ((!xkb) || (!xkb->names) || (!xkb->names->vmods)) + if ((!xkb) || (!xkb->names)) return False; for (i = nOut = 0; i < XkbNumVirtualMods; i++) { if (xkb->names->vmods[i] != None) { -- 2.1.3 _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
