aboutsummaryrefslogtreecommitdiff
path: root/xwayland/selection/outgoing.c
diff options
context:
space:
mode:
Diffstat (limited to 'xwayland/selection/outgoing.c')
-rw-r--r--xwayland/selection/outgoing.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xwayland/selection/outgoing.c b/xwayland/selection/outgoing.c
index 3e5432f0..d2d0932c 100644
--- a/xwayland/selection/outgoing.c
+++ b/xwayland/selection/outgoing.c
@@ -269,8 +269,7 @@ static bool xwm_selection_send_data(struct wlr_xwm_selection *selection,
return false;
}
- struct wlr_xwm_selection_transfer *transfer =
- calloc(1, sizeof(struct wlr_xwm_selection_transfer));
+ struct wlr_xwm_selection_transfer *transfer = calloc(1, sizeof(*transfer));
if (transfer == NULL) {
wlr_log(WLR_ERROR, "Allocation failed");
return false;