[PATCH libxkbfile 07/12] Fix possible NULL pointer dereference
Pauli Nieminen
ext-pauli.nieminen at nokia.com
Wed Jul 21 05:02:51 PDT 2010
Signed-off-by: Pauli Nieminen <ext-pauli.nieminen at nokia.com>
---
src/xkmout.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/xkmout.c b/src/xkmout.c
index 391e1b5..6cb5810 100644
--- a/src/xkmout.c
+++ b/src/xkmout.c
@@ -491,7 +491,7 @@ char * name;
size= xkmSizeCountedString(name);
size+= 4; /* min and max keycode, group names mask */
for (i=0;i<XkbNumKbdGroups;i++) {
- if (xkb->names->groups[i]!=None)
+ if (xkb->names && xkb->names->groups[i]!=None)
size+= xkmSizeCountedAtomString(dpy,xkb->names->groups[i]);
}
info->total_vmodmaps= 0;
--
1.6.3.3
More information about the xorg-devel
mailing list