ports/misc/alevt/files/patch-ab
Roger Hardiman c91394458d Fix problem with alevt expecting malloced memory to be zeroed.
Submitted by:	Ben Smithurst <ben@scientia.demon.co.uk>
2000-08-01 15:04:23 +00:00

13 lines
324 B
Text

*** xio.c.orig Thu Oct 7 23:24:38 1999
--- xio.c Tue Aug 1 15:57:33 2000
*************** xio_open_dpy(char *dpy, int argc, char *
*** 170,175 ****
--- 170,177 ----
if (not(xio = malloc(sizeof(*xio))))
goto fail1;
+ bzero(xio, sizeof *xio);
+
if (not(xio->dpy = XOpenDisplay(dpy)))
goto fail2;