projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71d66e2
)
malloc + memset -> zalloc
author
Peter Hutterer
<peter.hutterer@who-t.net>
Thu, 8 Aug 2013 01:57:05 +0000
(11:57 +1000)
committer
Jonas Ådahl
<jadahl@gmail.com>
Sat, 16 Nov 2013 20:54:07 +0000
(21:54 +0100)
And for clients using the xmalloc helper, use xzalloc.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/udev-seat.c
patch
|
blob
|
history
diff --git
a/src/udev-seat.c
b/src/udev-seat.c
index
771d9bc
..
4c051c9
100644
(file)
--- a/
src/udev-seat.c
+++ b/
src/udev-seat.c
@@
-338,11
+338,10
@@
udev_seat_create(struct weston_compositor *c, const char *seat_name)
{
struct udev_seat *seat;
- seat =
m
alloc(sizeof *seat);
+ seat =
z
alloc(sizeof *seat);
if (!seat)
return NULL;
- memset(seat, 0, sizeof *seat);
weston_seat_init(&seat->base, c, seat_name);
seat->base.led_update = drm_led_update;