]> Pileus Git - wmpus/blobdiff - sys-x11.c
Run through valgrind (fix memory leaks)
[wmpus] / sys-x11.c
index a5ae667f6e3e794676df052921ad6c54a03a8988..072216b76ca54c45550ae37be72c719e1d6a5aee 100644 (file)
--- a/sys-x11.c
+++ b/sys-x11.c
@@ -275,7 +275,7 @@ static void process_event(int type, XEvent *ev, win_t *root)
        //printf("event: %d\n", type);
 
        /* Common data for all these events ... */
-       ptr_t ptr; mod_t mod;
+       ptr_t ptr = {}; mod_t mod = {};
        if (type == KeyPress    || type == KeyRelease    ||
            type == ButtonPress || type == ButtonRelease ||
            type == MotionNotify) {