summaryrefslogtreecommitdiffstats
path: root/generic/tkBind.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2019-06-08 22:28:17 (GMT)
committerfvogel <fvogelnew1@free.fr>2019-06-08 22:28:17 (GMT)
commit3950b46b14e02ceb7ee25b55efef4d6dcaad6a15 (patch)
tree502036edc068e17308987369745dbd1fe224cf86 /generic/tkBind.c
parent0bd46f264389482ef6561255f041c3c15b7d0cc4 (diff)
downloadtk-3950b46b14e02ceb7ee25b55efef4d6dcaad6a15.zip
tk-3950b46b14e02ceb7ee25b55efef4d6dcaad6a15.tar.gz
tk-3950b46b14e02ceb7ee25b55efef4d6dcaad6a15.tar.bz2
Release too stringent constraint on numObjects that triggered a failed assertion (numObjects > 0) when running test treeview-368fa4561e. The previous implementation of tkBind.c did not have such a constraint, and the new implementation does not either. We musn't change the interface of Tk_BindEvent() - the man page does not say that numObjects must not be zero therefore we must support this case.
Diffstat (limited to 'generic/tkBind.c')
-rw-r--r--generic/tkBind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkBind.c b/generic/tkBind.c
index de88156..5acf0a1 100644
--- a/generic/tkBind.c
+++ b/generic/tkBind.c
@@ -2175,7 +2175,7 @@ Tk_BindEvent(
assert(bindPtr);
assert(eventPtr);
assert(tkwin);
- assert(numObjects > 0);
+ assert(numObjects >= 0);
/*
* Ignore events on windows that don't have names: these are windows like