From bb29c1fcc5398ae5cc236328ea7d5d6f0fdfb476 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 17 Jul 2015 18:37:20 -0400 Subject: [PATCH] gdk: Add some parameter checking This may help coverity recognize that we're not called with invalid combinations. --- gdk/gdkwindow.c | 2 ++ 1 file changed, 2 insertions(+) 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); }