diff --git a/src/EvToWire.c b/src/EvToWire.c index 1433527..714842b 100644 --- a/src/EvToWire.c +++ b/src/EvToWire.c @@ -50,6 +50,7 @@ register Display *dpy, /* pointer to display structure */ register XEvent *re, /* pointer to where event should be reformatted */ register xEvent *event) /* wire protocol event */ { + memset(event, 0, SIZEOF(xEvent)); switch (event->u.u.type = re->type) { case KeyPress: case KeyRelease: