summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--generic/tclInt.h4
2 files changed, 3 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index fd6e9f8..4789e1e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
2007-12-06 Jeff Hobbs <jeffh@ActiveState.com>
* generic/tclInt.h: add TclGetChannelFromObj decl
+ (TclMatchIsTrivial): simplify TclMatchIsTrivial to remove ] check.
2007-12-06 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
diff --git a/generic/tclInt.h b/generic/tclInt.h
index cc57a09..c507ed3 100644
--- a/generic/tclInt.h
+++ b/generic/tclInt.h
@@ -13,7 +13,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclInt.h,v 1.355 2007/12/06 19:23:40 hobbs Exp $
+ * RCS: @(#) $Id: tclInt.h,v 1.356 2007/12/06 19:34:58 hobbs Exp $
*/
#ifndef _TCLINT
@@ -3554,7 +3554,7 @@ MODULE_SCOPE void TclBNInitBignumFromWideUInt(mp_int *bignum,
*----------------------------------------------------------------
*/
-#define TclMatchIsTrivial(pattern) strpbrk((pattern), "*[]]?\\") == NULL
+#define TclMatchIsTrivial(pattern) strpbrk((pattern), "*[?\\") == NULL
/*
*----------------------------------------------------------------