projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46118f8
)
cliptest: Use xmalloc in cliptest
author
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 25 Jul 2013 23:24:36 +0000
(16:24 -0700)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 25 Jul 2013 23:24:36 +0000
(16:24 -0700)
clients/cliptest.c
patch
|
blob
|
history
diff --git
a/clients/cliptest.c
b/clients/cliptest.c
index
b824715
..
7d58551
100644
(file)
--- a/
clients/cliptest.c
+++ b/
clients/cliptest.c
@@
-791,9
+791,7
@@
cliptest_create(struct display *display)
{
struct cliptest *cliptest;
- cliptest = malloc(sizeof *cliptest);
- if (cliptest == NULL)
- return cliptest;
+ cliptest = xmalloc(sizeof *cliptest);
memset(cliptest, 0, sizeof *cliptest);
cliptest->surface.geometry = &cliptest->geometry;