diff options
| author | donal.k.fellows@manchester.ac.uk <dkf> | 2007-02-06 22:20:27 (GMT) |
|---|---|---|
| committer | donal.k.fellows@manchester.ac.uk <dkf> | 2007-02-06 22:20:27 (GMT) |
| commit | 8745d0022dfc94b1c70ef8bd6c1ca9b122c1ec17 (patch) | |
| tree | 379f1165844e921bf16145912a2e845195d9b31a /generic/tclNamesp.c | |
| parent | 4d6751077aaf0f9917021697c6e2e477c3379819 (diff) | |
| download | tcl-8745d0022dfc94b1c70ef8bd6c1ca9b122c1ec17.zip tcl-8745d0022dfc94b1c70ef8bd6c1ca9b122c1ec17.tar.gz tcl-8745d0022dfc94b1c70ef8bd6c1ca9b122c1ec17.tar.bz2 | |
Silence a trivial warning
Diffstat (limited to 'generic/tclNamesp.c')
| -rw-r--r-- | generic/tclNamesp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclNamesp.c b/generic/tclNamesp.c index f5f3da1..fc1111f 100644 --- a/generic/tclNamesp.c +++ b/generic/tclNamesp.c @@ -22,7 +22,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclNamesp.c,v 1.122 2007/02/06 21:08:06 dgp Exp $ + * RCS: @(#) $Id: tclNamesp.c,v 1.123 2007/02/06 22:20:27 dkf Exp $ */ #include "tclInt.h" @@ -3113,7 +3113,8 @@ NamespaceChildrenCmd( listPtr = Tcl_NewListObj(0, NULL); if ((pattern != NULL) && TclMatchIsTrivial(pattern)) { - int length = strlen(nsPtr->fullName); + unsigned int length = strlen(nsPtr->fullName); + if (strncmp(pattern, nsPtr->fullName, length) != 0) { goto searchDone; } |
