diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-12-28 07:44:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-28 07:44:21 -0800 |
commit | bb24895a2b1759ec78ae68bb91d13a98dc3cc9c7 (patch) | |
tree | 8c76d2152a6b21f98c879a2b5ecf4dfb05d3ff9c /examples | |
parent | 04b7701e1b7a7f371caffecafae07467aa8970e7 (diff) | |
parent | b0e440b5b1e1de0030947c68cdc34b0fd902c5e8 (diff) |
Merge pull request #533 from martinetd/wl_array_add
ENOMEM checks: consistently check wl_array_add return
Diffstat (limited to 'examples')
-rw-r--r-- | examples/screenshot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/screenshot.c b/examples/screenshot.c index 932f5e37..77652805 100644 --- a/examples/screenshot.c +++ b/examples/screenshot.c @@ -95,7 +95,7 @@ static void handle_global(void *data, struct wl_registry *registry, static struct screenshooter_output *output; if (strcmp(interface, "wl_output") == 0) { - output = calloc(1, sizeof *output); + output = calloc(1, sizeof(*output)); output->output = wl_registry_bind(registry, name, &wl_output_interface, 1); wl_list_insert(&output_list, &output->link); |