diff options
Diffstat (limited to 'slock.c')
| -rw-r--r-- | slock.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -229,7 +229,7 @@ lockscreen(Display *dpy, struct xrandr *rr, int screen) XSetWindowAttributes wa; Cursor invisible; - if (dpy == NULL || screen < 0 || !(lock = malloc(sizeof(struct lock)))) + if (dpy == NULL || screen < 0 || !(lock = calloc(1, sizeof(struct lock)))) return NULL; lock->screen = screen; |
