diff options
author | fvogel <fvogelnew1@free.fr> | 2019-06-08 22:28:17 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2019-06-08 22:28:17 (GMT) |
commit | 3950b46b14e02ceb7ee25b55efef4d6dcaad6a15 (patch) | |
tree | 502036edc068e17308987369745dbd1fe224cf86 /generic | |
parent | 0bd46f264389482ef6561255f041c3c15b7d0cc4 (diff) | |
download | tk-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')
-rw-r--r-- | generic/tkBind.c | 2 |
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 |