malloc + memset -> zalloc
And for clients using the xmalloc helper, use xzalloc.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
diff --git a/clients/image.c b/clients/image.c
index 1f3c77c..4d3f3b8 100644
--- a/clients/image.c
+++ b/clients/image.c
@@ -358,10 +358,9 @@
struct image *image;
char *b, *copy, title[512];;
- image = malloc(sizeof *image);
+ image = zalloc(sizeof *image);
if (image == NULL)
return image;
- memset(image, 0, sizeof *image);
copy = strdup(filename);
b = basename(copy);