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:
154b3cf
)
zalloc the libinput_source, don't malloc it
author
Peter Hutterer
<peter.hutterer@who-t.net>
Mon, 2 Feb 2015 23:36:17 +0000
(09:36 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Tue, 3 Feb 2015 00:56:38 +0000
(10:56 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jonas Ã…dahl <jadahl@gmail.com>
src/libinput.c
patch
|
blob
|
history
diff --git
a/src/libinput.c
b/src/libinput.c
index
951698a
..
7456b90
100644
(file)
--- a/
src/libinput.c
+++ b/
src/libinput.c
@@
-510,7
+510,7
@@
libinput_add_fd(struct libinput *libinput,
struct libinput_source *source;
struct epoll_event ep;
- source =
m
alloc(sizeof *source);
+ source =
z
alloc(sizeof *source);
if (!source)
return NULL;