swc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/swc
Log | Files | Refs | README | LICENSE

commit bca425f1cd85e4893e190e6da9a4e464deb11386
parent 13e401d19ea75e3a205b55f3ffe656479d86a816
Author: Michael Forney <mforney@mforney.org>
Date:   Sun,  6 Sep 2015 19:29:52 -0700

Style

Diffstat:
Mlibswc/surface.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libswc/surface.c b/libswc/surface.c @@ -317,9 +317,7 @@ surface_new(struct wl_client *client, uint32_t version, uint32_t id) { struct surface *surface; - surface = malloc(sizeof *surface); - - if (!surface) + if (!(surface = malloc(sizeof *surface))) return NULL; /* Initialize the surface. */