diff options
author | cnt0 <sarum9n@gmail.com> | 2018-09-02 12:56:34 +0500 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-09-02 20:48:18 +0200 |
commit | 6946134883bcbb419f898cbbc87bfa345d070f3c (patch) | |
tree | 60225e7b0fc66019326d9a2e7df7adf3dfbcb012 | |
parent | 95d05acda511e8559ab87a3d8956ee942ca1999e (diff) |
fix incorrect NULL check
-rw-r--r-- | types/tablet_v2/wlr_tablet_v2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/types/tablet_v2/wlr_tablet_v2.c b/types/tablet_v2/wlr_tablet_v2.c index 45036839..c0e815ed 100644 --- a/types/tablet_v2/wlr_tablet_v2.c +++ b/types/tablet_v2/wlr_tablet_v2.c @@ -163,7 +163,7 @@ static void get_tablet_seat(struct wl_client *wl_client, struct wl_resource *res struct wlr_tablet_seat_client_v2 *seat_client = calloc(1, sizeof(struct wlr_tablet_seat_client_v2)); - if (tablet_seat == NULL) { + if (seat_client == NULL) { wl_client_post_no_memory(wl_client); return; } |