cliptest: Use xmalloc in cliptest
authorKristian Høgsberg <krh@bitplanet.net>
Thu, 25 Jul 2013 23:24:36 +0000 (16:24 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 25 Jul 2013 23:24:36 +0000 (16:24 -0700)
clients/cliptest.c

index b824715..7d58551 100644 (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;