diff options
author | sebres <sebres@users.sourceforge.net> | 2019-01-31 12:52:56 (GMT) |
---|---|---|
committer | sebres <sebres@users.sourceforge.net> | 2019-01-31 12:52:56 (GMT) |
commit | fc5dc8e81101cd4ed4970ab6451792f7fa975811 (patch) | |
tree | c757e494573ed730bf351e558352d6903229a9fc /generic/tclInt.h | |
parent | 8a8e70d5a6a4db9ed214aa5d0b81bf0a63f910cd (diff) | |
download | tcl-fc5dc8e81101cd4ed4970ab6451792f7fa975811.zip tcl-fc5dc8e81101cd4ed4970ab6451792f7fa975811.tar.gz tcl-fc5dc8e81101cd4ed4970ab6451792f7fa975811.tar.bz2 |
code review with small amend (note nameLength is number of bytes, the argument may be utf-8 as well as not necessarily a NTS, so access of char after end may cause segfault).
Diffstat (limited to 'generic/tclInt.h')
-rw-r--r-- | generic/tclInt.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h index 5b0206f..b5f9f76 100644 --- a/generic/tclInt.h +++ b/generic/tclInt.h @@ -902,9 +902,8 @@ typedef struct CompiledLocal { /* Next compiler-recognized local variable for * this procedure, or NULL if this is the last * local. */ - int nameLength; /* The number of bytes in local - * variable's name. Used to speed up variable - * lookups. */ + int nameLength; /* The number of bytes in local variable's name. + * Among others used to speed up var lookups. */ int frameIndex; /* Index in the array of compiler-assigned * variables in the procedure call frame. */ int flags; /* Flag bits for the local variable. Same as |