From 4b9d1c4f5cf7138c371d7cec9b59e2b7ea117075 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Mon, 20 Feb 2006 05:51:49 +0000 Subject: Optimized away a recently-added call to strlen(). --- Src/Zle/compcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit 1.4.1