[PATCH 28/32] [libx11] Comparing array against NULL is not useful "&xkb->server->vmods != NULL"
Erkki Seppälä
erkki.seppala at vincit.fi
Wed Jan 26 23:54:11 PST 2011
- Previous message: [PATCH 27/32] [libx11] Return value of "XGetWindowProperty(im->core.display, spec->lib_connect_wid, prop, 0L, (length + bytes_after_ret + 3UL) / 4UL, 1, 0UL, &type_ret, &format_ret, &nitems, &bytes_after_ret, &prop_ret)" is not checked
- Next message: [PATCH 28/32] [libx11] Comparing array against NULL is not useful "&xkb->server->vmods != NULL"
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Removed superfluous comparison.
Signed-off-by: Erkki Seppälä <erkki.seppala at vincit.fi>
---
src/xkb/XKBMisc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/xkb/XKBMisc.c b/src/xkb/XKBMisc.c
index fc5ae5f..4aa1f73 100644
--- a/src/xkb/XKBMisc.c
+++ b/src/xkb/XKBMisc.c
@@ -619,7 +619,7 @@ KeySym * syms;
XkbApplyCompatMapToKey(xkb,key,changes);
}
- if ((xkb->server->vmods!=NULL)&&(xkb->map->modmap!=NULL)&&(changes)&&
+ if ((xkb->map->modmap!=NULL)&&(changes)&&
(changes->map.changed&(XkbVirtualModMapMask|XkbModifierMapMask))) {
unsigned char newVMods[XkbNumVirtualMods];
register unsigned bit,i;
--
1.7.0.4
- Previous message: [PATCH 27/32] [libx11] Return value of "XGetWindowProperty(im->core.display, spec->lib_connect_wid, prop, 0L, (length + bytes_after_ret + 3UL) / 4UL, 1, 0UL, &type_ret, &format_ret, &nitems, &bytes_after_ret, &prop_ret)" is not checked
- Next message: [PATCH 28/32] [libx11] Comparing array against NULL is not useful "&xkb->server->vmods != NULL"
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the xorg-devel
mailing list