keyrouter: Add missing assignment 15/278215/1
authorSeunghun Lee <shiin.lee@samsung.com>
Wed, 8 Jun 2022 07:53:16 +0000 (16:53 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 18 Jul 2022 05:58:55 +0000 (14:58 +0900)
The member variable 'keyrouter' of ds_tizen_keyrouter_client is referred
throughout the file, but it's never been assigned.

Change-Id: I7db736c88c89026433da5c1621f249593b402125

src/keyrouter/keyrouter.c

index 991c1f3b59b3c2843648431a4fd95437b9daa29b..2e95e4882686af42b794a5bc63f6cd3d9e009b87 100644 (file)
@@ -344,6 +344,7 @@ keyrouter_bind(struct wl_client *client, void *data, uint32_t version,
         return;
     }
 
+    keyrouter_client->keyrouter = keyrouter;
     keyrouter_client->resource =
         wl_resource_create(client, &tizen_keyrouter_interface, MIN(version, 2), id);
     if (keyrouter_client->resource == NULL) {