Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: BUG: Zsh crashes
On Sat, 14 Jan 2017 20:36:24 +0000
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx> wrote:
> Removing the "=" after flowgraph stops it ("it" includes any reports of
> errors in mem.c, of course). So this points at something to do with how
> _values handles values.
Can someone else see if this helps?
I have a feeling _rust ought to be quoting the "=", too, but that's much
more minor.
pws
diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c
index 7bf9535..5b9ceec 100644
--- a/Src/Zle/computil.c
+++ b/Src/Zle/computil.c
@@ -3569,8 +3569,8 @@ bin_compvalues(char *nam, char **args, UNUSED(Options ops), UNUSED(int func))
Cvval val = cv_get_val(cv_laststate.d, args[1]);
if (val && val->arg) {
- setsparam(args[2], val->arg->descr);
- setsparam(args[3], val->arg->action);
+ setsparam(args[2], ztrdup(val->arg->descr));
+ setsparam(args[3], ztrdup(val->arg->action));
if (args[4])
setsparam(args[4], ztrdup(val->name));
Messages sorted by:
Reverse Date,
Date,
Thread,
Author