sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 836123329504af8b4fd735063eb44690a23e626e
parent bde9711f3cea13a0283f7c2b5b5aa1deb91edf41
Author: Ryan Dwyer <ryandwyer1@gmail.com>
Date:   Sun, 20 May 2018 22:47:07 +1000

Swaylock: Use calloc instead of malloc

Diffstat:
Mswaylock/main.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/swaylock/main.c b/swaylock/main.c @@ -212,7 +212,7 @@ static cairo_surface_t *select_image(struct swaylock_state *state, static void load_image(char *arg, struct swaylock_state *state) { // [<output>:]<path> - struct swaylock_image *image = malloc(sizeof(struct swaylock_image)); + struct swaylock_image *image = calloc(1, sizeof(struct swaylock_image)); char *separator = strchr(arg, ':'); if (separator) { *separator = '\0';