[gtk/wip/baedert/for-master: 174/180] gdksurface: Ensure some assumptions
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 174/180] gdksurface: Ensure some assumptions
- Date: Fri, 16 Oct 2020 19:58:53 +0000 (UTC)
commit eb1e6700e706c0af0e40212c1bdcc1feb861c05d
Author: Timm Bäder <mail baedert org>
Date: Thu Oct 15 18:51:51 2020 +0200
gdksurface: Ensure some assumptions
Just to please scan-build
gdk/gdksurface.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index 4b485a012d..c32c17262b 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -2051,6 +2051,9 @@ update_cursor (GdkDisplay *display,
GdkDeviceGrabInfo *grab;
GdkCursor *cursor;
+ g_assert (display);
+ g_assert (device);
+
pointer_info = _gdk_display_get_pointer_info (display, device);
pointer_surface = pointer_info->surface_under_pointer;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]