summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2012-12-06 21:10:19 (GMT)
committerdgp <dgp@users.sourceforge.net>2012-12-06 21:10:19 (GMT)
commit1340847bcf95785a44a4dcef989eaaff64a6493a (patch)
tree7f6810c5ac1568c79cd20c2bdff3297bb1e86542
parentb1e66e34704ff978d2dbacea83cc81ae8650a6d0 (diff)
parent92b20ad57f4d24e7d2d915c6059e0decb570276d (diff)
downloadtcl-1340847bcf95785a44a4dcef989eaaff64a6493a.zip
tcl-1340847bcf95785a44a4dcef989eaaff64a6493a.tar.gz
tcl-1340847bcf95785a44a4dcef989eaaff64a6493a.tar.bz2
Tcl_InitStubs("8.5",1) would succeed in an "8.50" interp. Fixed.
-rw-r--r--generic/tclStubLib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclStubLib.c b/generic/tclStubLib.c
index 91012fd..0efaf50 100644
--- a/generic/tclStubLib.c
+++ b/generic/tclStubLib.c
@@ -111,7 +111,7 @@ Tcl_InitStubs(
while (*p && (*p == *q)) {
p++; q++;
}
- if (*p) {
+ if (*p || isDigit(*q)) {
/* Construct error message */
Tcl_PkgRequireEx(interp, "Tcl", version, 1, NULL);
return NULL;