about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-rw-r--r--Src/cond.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/cond.c b/Src/cond.c
index a63841234..b9a47cea5 100644
--- a/Src/cond.c
+++ b/Src/cond.c
@@ -139,7 +139,7 @@ evalcond(Estate state, char *fromtest)
 		l = 2;
 	    }
 	    if (name && IS_DASH(name[0]))
-		untokenize(errname = name);
+		untokenize(errname = dupstring(name));
 	    else if (strs[0] && IS_DASH(*strs[0]))
 		untokenize(errname = strs[0]);
 	    else