From 698cbe20ddc61439ec45ca225aef188a83d2b55e Mon Sep 17 00:00:00 2001 From: rlar Date: Fri, 25 Mar 2016 14:49:17 +0100 Subject: [PATCH] frontend/options.c, fix `cp_enqvar(char *word)', missing `copy()' --- src/frontend/options.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/frontend/options.c b/src/frontend/options.c index e0f23b4cd..6cceb2fa6 100644 --- a/src/frontend/options.c +++ b/src/frontend/options.c @@ -91,31 +91,31 @@ cp_enqvar(char *word) if (eq(word, "curplotname")) { vv = TMALLOC(struct variable, 1); vv->va_next = NULL; - vv->va_name = word; + vv->va_name = copy(word); vv->va_type = CP_STRING; vv->va_string = copy(plot_cur->pl_name); } else if (eq(word, "curplottitle")) { vv = TMALLOC(struct variable, 1); vv->va_next = NULL; - vv->va_name = word; + vv->va_name = copy(word); vv->va_type = CP_STRING; vv->va_string = copy(plot_cur->pl_title); } else if (eq(word, "curplotdate")) { vv = TMALLOC(struct variable, 1); vv->va_next = NULL; - vv->va_name = word; + vv->va_name = copy(word); vv->va_type = CP_STRING; vv->va_string = copy(plot_cur->pl_date); } else if (eq(word, "curplot")) { vv = TMALLOC(struct variable, 1); vv->va_next = NULL; - vv->va_name = word; + vv->va_name = copy(word); vv->va_type = CP_STRING; vv->va_string = copy(plot_cur->pl_typename); } else if (eq(word, "plots")) { vv = TMALLOC(struct variable, 1); vv->va_next = NULL; - vv->va_name = word; + vv->va_name = copy(word); vv->va_type = CP_LIST; vv->va_vlist = NULL; for (pl = plot_list; pl; pl = pl->pl_next) {