diff options
author | Wayne Davison <wayned@users.sourceforge.net> | 2006-02-20 05:51:49 +0000 |
---|---|---|
committer | Wayne Davison <wayned@users.sourceforge.net> | 2006-02-20 05:51:49 +0000 |
commit | 4b9d1c4f5cf7138c371d7cec9b59e2b7ea117075 (patch) | |
tree | 28192c5bd1bff5a79fe56002a80ee26587e50f51 /Src | |
parent | 52a1e0ee681f82f611f216dfca03f484bf93c086 (diff) | |
download | zsh-4b9d1c4f5cf7138c371d7cec9b59e2b7ea117075.tar.gz zsh-4b9d1c4f5cf7138c371d7cec9b59e2b7ea117075.tar.xz zsh-4b9d1c4f5cf7138c371d7cec9b59e2b7ea117075.zip |
Optimized away a recently-added call to strlen().
Diffstat (limited to 'Src')
-rw-r--r-- | Src/Zle/compcore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c index 1f81f989f..1caad5484 100644 --- a/Src/Zle/compcore.c +++ b/Src/Zle/compcore.c @@ -2501,7 +2501,7 @@ add_match_data(int alt, char *str, char *orig, Cline line, if (new_str) { *t = '\0'; str = new_str; - stl = strlen(str); + stl = t - str; } #endif |