summaryrefslogtreecommitdiff
path: root/vchat-ui.c
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2026-01-22 19:45:23 +0100
committerDirk Engling <erdgeist@erdgeist.org>2026-01-22 19:45:23 +0100
commit8a2c97d3070da738ebaed62ed6cc806d06d8481d (patch)
treeddca82543c2ee0dc3fe3dc9bbd0147a1deb78449 /vchat-ui.c
parent6d2fb4ff436c9a9c064199fdc5468cd8a1a8a993 (diff)
Silence a warning about a use after free. It was just an artefact of the complex xor linked list construct.
Diffstat (limited to 'vchat-ui.c')
-rw-r--r--vchat-ui.c2
1 files changed, 1 insertions, 1 deletions
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) {
305 struct sb_entry *now = sb->entries, *prev = NULL, *tmp; 305 struct sb_entry *now = sb->entries, *prev = NULL, *tmp;
306 while (now) { 306 while (now) {
307 tmp = (struct sb_entry *)((unsigned long)prev ^ (unsigned long)now->link); 307 tmp = (struct sb_entry *)((unsigned long)prev ^ (unsigned long)now->link);
308 prev = now;
308 free(now->what); 309 free(now->what);
309 free(now); 310 free(now);
310 prev = now;
311 now = tmp; 311 now = tmp;
312 } 312 }
313 sb->entries = NULL; 313 sb->entries = NULL;