diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-07-17 18:37:20 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-07-17 18:37:20 -0400 |
commit | bb29c1fcc5398ae5cc236328ea7d5d6f0fdfb476 (patch) | |
tree | a12560afd3d98dee39d4016aab3d20894d2e2838 /gdk/gdkwindow.c | |
parent | 2b105dc3d925dc4ad16906afb532968ba6ff9750 (diff) | |
download | gtk+-bb29c1fcc5398ae5cc236328ea7d5d6f0fdfb476.tar.gz |
gdk: Add some parameter checking
This may help coverity recognize that we're not called with
invalid combinations.
Diffstat (limited to 'gdk/gdkwindow.c')
-rw-r--r-- | gdk/gdkwindow.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index af3d17a0d5..f6516e5130 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -9872,6 +9872,8 @@ gdk_window_set_geometry_hints (GdkWindow *window, const GdkGeometry *geometry, GdkWindowHints geom_mask) { + g_return_if_fail (geometry != NULL || geom_mask == 0); + GDK_WINDOW_IMPL_GET_CLASS (window->impl)->set_geometry_hints (window, geometry, geom_mask); } |