diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Src/cond.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 8270102b9..5a1995a36 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2017-06-19 Barton E. Schaefer <schaefer@zsh.org> + * Mikael Magnusson: 41319: Src/cond.c: dupstring a possibly + readonly string before modifying + * 41322 + comment: Src/input.c: reduce number of changes in signal queuing/blocking state during shingetline() to improve read speed 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 |