Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: dupstring a possibly readonly string before modifying
- X-seq: zsh-workers 41319
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: PATCH: dupstring a possibly readonly string before modifying
- Date: Mon, 19 Jun 2017 12:06:46 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=s1jnaX8eMX44/BQ2U2fSIlPbGCMgEvaxiJEZ6tO/dUI=; b=BdutKzx6omeFyqLCRQSHNTpajHNsFVX3RVMFR21rgiYZgvZQ2+wUz2TJMKmQCpXmGa ciPPTsF33doK5J0a6Xo0AqIhPvTlJHdylVH3P9KB/D/IcaIOvGpKht6t8OPgeJW+K184 ZMFOdlIAWd3P0rDH33/Vp9gPjblfjKUOMwKF8NbpK7da3AUe0DGy7/JcJYv02Z0zRHaN SQQ058w9GAsC66fwHjJIraifE5jNuuBF+l32Z96BXAHybcHZRVv2+f13QGDWXBRIcUnY g9ffCoPv/wkvKRZzZt+wK9hJ0hLtges1EhfFi9vr26AEYM7jR/XHRaZFZiTux5YEEM91 /Nkg==
- In-reply-to: <CAHYJk3TgQ6bQUWmsLSSHop9TD0nEXPgNW2=k_c4owWSSsENr1w@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author