summaryrefslogtreecommitdiff
path: root/clients/cliptest.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2013-07-25 16:24:36 -0700
committerKristian Høgsberg <krh@bitplanet.net>2013-07-25 16:24:36 -0700
commit9a6c48d0fd0896a8fbeedd4e03cbcbc0998e0983 (patch)
tree6a742c57203840e2ff34096ede52aacdc1dda5bd /clients/cliptest.c
parent46118f8197b7e8b464d1882440ca0892ffc23091 (diff)
cliptest: Use xmalloc in cliptest
Diffstat (limited to 'clients/cliptest.c')
-rw-r--r--clients/cliptest.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/clients/cliptest.c b/clients/cliptest.c
index b8247158..7d58551a 100644
--- 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;