From 6b23d855d83c2cbfd0148494d525ea17b8f58fbe Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Sun, 21 Mar 2021 00:24:57 +0100 Subject: [PATCH] buflist: Fix wrong pointers being used in hdata_compare This used pointer1 and pointer2 which are pointers to the buffers, but it should use ptr_hotlist1 and ptr_hotlist1 which are pointers to the hotlists it is trying to compare. --- src/plugins/buflist/buflist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/buflist/buflist.c b/src/plugins/buflist/buflist.c index b1663aa6b..043d394c8 100644 --- a/src/plugins/buflist/buflist.c +++ b/src/plugins/buflist/buflist.c @@ -271,7 +271,7 @@ buflist_compare_buffers (void *data, struct t_arraylist *arraylist, else { rc = weechat_hdata_compare (buflist_hdata_hotlist, - pointer1, pointer2, + ptr_hotlist1, ptr_hotlist2, ptr_field + 8, case_sensitive); }