clients: Use zalloc
Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
diff --git a/clients/multi-resource.c b/clients/multi-resource.c
index c30d38a..4ed4d50 100644
--- a/clients/multi-resource.c
+++ b/clients/multi-resource.c
@@ -40,6 +40,7 @@
#include <wayland-client.h>
#include "shared/os-compatibility.h"
+#include "shared/zalloc.h"
struct device {
enum { KEYBOARD, POINTER } type;
@@ -87,7 +88,7 @@
{
void *p;
- p = calloc(1, s);
+ p = zalloc(s);
if (p == NULL) {
fprintf(stderr, "%s: out of memory\n", program_invocation_short_name);
exit(EXIT_FAILURE);