e_xdg_shell_v6: fix the dereferenced data 94/246594/1
authorSooChan Lim <sc1.lim@samsung.com>
Mon, 2 Nov 2020 09:02:01 +0000 (18:02 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 2 Nov 2020 09:02:01 +0000 (18:02 +0900)
Change-Id: Iac5e1c349df5930d8411b23f7915c5f55e57cb56

src/bin/e_xdg_shell_v6.c

index cc97f140245d07f9acec35a424cb6f404072f596..a15143f933a5ede1254a4f53f2fe501709905785 100644 (file)
@@ -1084,6 +1084,8 @@ _e_xdg_positioner_cb_offset_set(struct wl_client *client,
    E_Xdg_Positioner *p;
 
    p = wl_resource_get_user_data(resource);
+   if (!p) return;
+
    p->offset.x = x;
    p->offset.y = y;
 }