aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-12-28 07:44:21 -0800
committerGitHub <noreply@github.com>2017-12-28 07:44:21 -0800
commitbb24895a2b1759ec78ae68bb91d13a98dc3cc9c7 (patch)
tree8c76d2152a6b21f98c879a2b5ecf4dfb05d3ff9c /examples
parent04b7701e1b7a7f371caffecafae07467aa8970e7 (diff)
parentb0e440b5b1e1de0030947c68cdc34b0fd902c5e8 (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.c2
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);