diff options
author | Erich Eckner <git@eckner.net> | 2019-09-01 21:39:52 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-05-11 21:05:00 +0200 |
commit | 85617fe554d6de26b4582ce187df1e2e34921897 (patch) | |
tree | bf0591fa4a037e5837026b9b59e5670dc180f3bc /alpine/roleconf.c | |
parent | b5eb45a153202d72aeb48de1149e7c74aef979fd (diff) | |
download | alpine-rules.tar.xz |
rules.patch appliedrules
Diffstat (limited to 'alpine/roleconf.c')
-rw-r--r-- | alpine/roleconf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/alpine/roleconf.c b/alpine/roleconf.c index 0ee3ec8..378baa8 100644 --- a/alpine/roleconf.c +++ b/alpine/roleconf.c @@ -7707,6 +7707,11 @@ role_text_tool_inick(struct pine *ps, int cmd, CONF_S **cl, unsigned int flags) if(apval) *apval = (role && role->nick) ? cpystr(role->nick) : NULL; + if (ps_global->role) + fs_give((void **)&ps_global->role); + if (role && role->nick) + ps_global->role = cpystr(role->nick); + if((*cl)->value) fs_give((void **)&((*cl)->value)); |