commit bca425f
Michael Forney
·
2015-09-07 02:29:52 +0000 UTC
parent 13e401d
Style
1 files changed,
+1,
-3
+1,
-3
1@@ -317,9 +317,7 @@ surface_new(struct wl_client *client, uint32_t version, uint32_t id)
2 {
3 struct surface *surface;
4
5- surface = malloc(sizeof *surface);
6-
7- if (!surface)
8+ if (!(surface = malloc(sizeof *surface)))
9 return NULL;
10
11 /* Initialize the surface. */