hirc

IRC client
Log | Files | Refs

commit a887889285bd98950946ce5d2bf7e3e422be5593
parent a79224751a669462fc565a04389b0e260af3b446
Author: hhvn <dev@hhvn.uk>
Date:   Sat, 27 Nov 2021 22:17:52 +0000

ui.c: initialize escape to 0

Diffstat:
Mui.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui.c b/ui.c @@ -780,7 +780,7 @@ ui_format(char *format, struct History *hist) { params++; } - for (rc = 0; format && *format && rc < sizeof(ret); ) { + for (escape = 0, rc = 0; format && *format && rc < sizeof(ret); ) { if (!escape && *format == '$' && *(format+1) == '{' && strchr(format, '}')) { escape = 0; tmp = struntil(format+2, '}');