cliptest: Use xmalloc in cliptest

This commit is contained in:
Kristian Høgsberg 2013-07-25 16:24:36 -07:00
parent 46118f8197
commit 9a6c48d0fd
1 changed files with 1 additions and 3 deletions

View File

@ -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;