summaryrefslogtreecommitdiff
path: root/otk_c/display.c
diff options
context:
space:
mode:
Diffstat (limited to 'otk_c/display.c')
-rw-r--r--otk_c/display.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/otk_c/display.c b/otk_c/display.c
index 3ce7f06b..c0cae13c 100644
--- a/otk_c/display.c
+++ b/otk_c/display.c
@@ -148,6 +148,7 @@ void OtkDisplay_Ungrab(OtkDisplay *self)
OtkScreenInfo *OtkDisplay_ScreenInfo(OtkDisplay *self, int num)
{
+ assert(num >= 0);
return (OtkScreenInfo*)PyList_GetItem((PyObject*)self->screenInfoList, num);
}