diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2007-02-06 22:20:27 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2007-02-06 22:20:27 (GMT) |
commit | ef9011842356efbd49051a7b9dab5dd5acd74a2f (patch) | |
tree | 379f1165844e921bf16145912a2e845195d9b31a /generic/tclNamesp.c | |
parent | eb7de2c4e26d9f1c416f9047ec735393b0d36578 (diff) | |
download | tcl-ef9011842356efbd49051a7b9dab5dd5acd74a2f.zip tcl-ef9011842356efbd49051a7b9dab5dd5acd74a2f.tar.gz tcl-ef9011842356efbd49051a7b9dab5dd5acd74a2f.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; } |