about summary refs log tree commit diff
path: root/Src/cond.c
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-10-15 11:28:07 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-10-15 11:28:07 +0000
commit0e6f26551664f4aa6fa5b4bb5ae0638930f8cf0f (patch)
tree637f854aba35c18861e0ccc9a44fc820cf3d0cd9 /Src/cond.c
parentfdb4782642c7b030cd1972967fb4ed543949a3ee (diff)
downloadzsh-0e6f26551664f4aa6fa5b4bb5ae0638930f8cf0f.tar.gz
zsh-0e6f26551664f4aa6fa5b4bb5ae0638930f8cf0f.tar.xz
zsh-0e6f26551664f4aa6fa5b4bb5ae0638930f8cf0f.zip
for caching of compiled patterns: remember that singsub() might modify the string it gets, compare with unmodified string (16041)
Diffstat (limited to 'Src/cond.c')
-rw-r--r--Src/cond.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/cond.c b/Src/cond.c
index 8a54eeeb2..b34a14be1 100644
--- a/Src/cond.c
+++ b/Src/cond.c
@@ -202,7 +202,7 @@ evalcond(Estate state)
 		char *opat;
 		int save;
 
-		right = opat = dupstring(ecrawstr(state->prog, state->pc,
+		right = dupstring(opat = ecrawstr(state->prog, state->pc,
 						  &htok));
 		if (htok)
 		    singsub(&right);