summaryrefslogtreecommitdiff
path: root/gdk/gdkdevice.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdk/gdkdevice.c')
-rw-r--r--gdk/gdkdevice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/gdkdevice.c b/gdk/gdkdevice.c
index 5c62e091ae..3c8114b547 100644
--- a/gdk/gdkdevice.c
+++ b/gdk/gdkdevice.c
@@ -766,7 +766,7 @@ _gdk_device_set_associated_device (GdkDevice *device,
GdkDevicePrivate *priv;
g_return_if_fail (GDK_IS_DEVICE (device));
- g_return_if_fail (GDK_IS_DEVICE (associated));
+ g_return_if_fail (associated == NULL || GDK_IS_DEVICE (associated));
priv = device->priv;