diff options
author | hobbs <hobbs@noemail.net> | 2010-09-22 00:57:09 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2010-09-22 00:57:09 (GMT) |
commit | 48363a3947f253ec251bd0b10d9f1cd1795e569b (patch) | |
tree | 356a5957b976f2062a12f31fac69730677ca8a7a /generic/tclResult.c | |
parent | c45601c2c242043177ae5c962805080cd5f69a93 (diff) | |
download | tcl-48363a3947f253ec251bd0b10d9f1cd1795e569b.zip tcl-48363a3947f253ec251bd0b10d9f1cd1795e569b.tar.gz tcl-48363a3947f253ec251bd0b10d9f1cd1795e569b.tar.bz2 |
* generic/tclOOMethod.c (ProcedureMethodCompiledVarConnect):
* generic/tclVar.c (TclLookupSimpleVar, CompareVarKeys):
* generic/tclPathObj.c (Tcl_FSGetNormalizedPath, Tcl_FSEqualPaths):
* generic/tclExecute.c (TclExecuteByteCode):
* generic/tclIOUtil.c (TclFSCwdPointerEquals): peephole opt
* generic/tclResult.c (TclMergeReturnOptions): use memcmp where
applicable as possible speedup on some libc variants.
FossilOrigin-Name: 9dc86adce744657674fe3c8a0dac07f44f47f583
Diffstat (limited to 'generic/tclResult.c')
-rw-r--r-- | generic/tclResult.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclResult.c b/generic/tclResult.c index 07b50db..18aae6c 100644 --- a/generic/tclResult.c +++ b/generic/tclResult.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclResult.c,v 1.61 2010/04/05 19:44:45 ferrieux Exp $ + * RCS: @(#) $Id: tclResult.c,v 1.62 2010/09/22 00:57:11 hobbs Exp $ */ #include "tclInt.h" @@ -1378,7 +1378,7 @@ TclMergeReturnOptions( const char *compare = TclGetStringFromObj(keys[KEY_OPTIONS], &compareLen); - if ((optLen == compareLen) && (strcmp(opt, compare) == 0)) { + if ((optLen == compareLen) && (memcmp(opt, compare, optLen) == 0)) { Tcl_DictSearch search; int done = 0; Tcl_Obj *keyPtr; |