From: Mikael Magnusson <mikachu@gmail.com>
To: zsh-workers@zsh.org
Subject: PATCH: dupstring a possibly readonly string before modifying
Date: Mon, 19 Jun 2017 12:06:46 +0200 [thread overview]
Message-ID: <20170619100646.22334-1-mikachu@gmail.com> (raw)
In-Reply-To: <CAHYJk3TgQ6bQUWmsLSSHop9TD0nEXPgNW2=k_c4owWSSsENr1w@mail.gmail.com>
---
Src/cond.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Src/cond.c b/Src/cond.c
index a63841234d..b9a47cea54 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
--
2.8.2
prev parent reply other threads:[~2017-06-19 10:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-07 17:33 Another minor =~ glitch Bart Schaefer
2017-04-08 1:58 ` Roland Eggner
2017-04-08 5:23 ` Bart Schaefer
2017-06-14 4:45 ` Mikael Magnusson
2017-06-14 4:49 ` Mikael Magnusson
2017-06-19 10:06 ` Mikael Magnusson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170619100646.22334-1-mikachu@gmail.com \
--to=mikachu@gmail.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).