From 77ec02adbc8f9657e7749b307d3cc86ccbd163ea Mon Sep 17 00:00:00 2001 From: marha Date: Sat, 12 Mar 2011 14:57:48 +0000 Subject: libX11 pixman mesa git update 12 Mar 2011 --- libX11/src/KeyBind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libX11/src/KeyBind.c') diff --git a/libX11/src/KeyBind.c b/libX11/src/KeyBind.c index cc1906fad..6eb84328c 100644 --- a/libX11/src/KeyBind.c +++ b/libX11/src/KeyBind.c @@ -996,7 +996,7 @@ XRebindKeysym ( tmp = dpy->key_bindings; nb = sizeof(KeySym) * nm; - if ((! (p = (struct _XKeytrans *) Xmalloc( sizeof(struct _XKeytrans)))) || + if ((! (p = (struct _XKeytrans *) Xcalloc( 1, sizeof(struct _XKeytrans)))) || ((! (p->string = (char *) Xmalloc( (unsigned) nbytes))) && (nbytes > 0)) || ((! (p->modifiers = (KeySym *) Xmalloc( (unsigned) nb))) && -- cgit v1.2.3