From 8a2c97d3070da738ebaed62ed6cc806d06d8481d Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Thu, 22 Jan 2026 19:45:23 +0100 Subject: Silence a warning about a use after free. It was just an artefact of the complex xor linked list construct. --- vchat-ui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vchat-ui.c') diff --git a/vchat-ui.c b/vchat-ui.c index 185cad0..81db925 100644 --- a/vchat-ui.c +++ b/vchat-ui.c @@ -305,9 +305,9 @@ static void sb_flush(struct sb_data *sb) { struct sb_entry *now = sb->entries, *prev = NULL, *tmp; while (now) { tmp = (struct sb_entry *)((unsigned long)prev ^ (unsigned long)now->link); + prev = now; free(now->what); free(now); - prev = now; now = tmp; } sb->entries = NULL; -- cgit v1.2.3