hirc

IRC client
Log | Files | Refs

commit 7386eb81b251c464e600efd6cca32c707610595d
parent 4327c2ffa9921df30491d6795baef56ef2e00589
Author: hhvn <dev@hhvn.uk>
Date:   Wed,  8 Jun 2022 17:47:29 +0100

format(): set history-related values to NULL, if hist is NULL

Diffstat:
Msrc/format.y | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/format.y b/src/format.y @@ -484,6 +484,8 @@ format(struct Window *window, char *format, struct History *hist) { if (hist->params) parse_params = hist->params + 1; } else { + vars[var_raw].val = vars[var_nick].val = vars[var_ident].val = + vars[var_host].val = vars[var_priv].val = NULL; parse_params = NULL; parse_server = NULL; }