summaryrefslogtreecommitdiff
path: root/clients/gears.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2013-08-08 11:57:05 +1000
committerKristian Høgsberg <krh@bitplanet.net>2013-08-08 13:46:13 -0700
commitf3d62276d20750e636fc82bc89b3c4c23576299d (patch)
tree05fee3d04531b3e3b303d82a546e26c1f1d96d81 /clients/gears.c
parentb1bc4a68b0bc2d7b391c7484a52a46a636ad89fc (diff)
downloadweston-f3d62276d20750e636fc82bc89b3c4c23576299d.tar.gz
malloc + memset -> zalloc
And for clients using the xmalloc helper, use xzalloc. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'clients/gears.c')
-rw-r--r--clients/gears.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/clients/gears.c b/clients/gears.c
index e7249eb2..30f4e688 100644
--- a/clients/gears.c
+++ b/clients/gears.c
@@ -401,8 +401,7 @@ gears_create(struct display *display)
struct timeval tv;
int i;
- gears = malloc(sizeof *gears);
- memset(gears, 0, sizeof *gears);
+ gears = zalloc(sizeof *gears);
gears->d = display;
gears->window = window_create(display);
gears->widget = frame_create(gears->window, gears);