summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2021-03-21 00:24:57 +0100
committerSébastien Helleu <flashcode@flashtux.org>2021-03-21 08:59:37 +0100
commit6b23d855d83c2cbfd0148494d525ea17b8f58fbe (patch)
tree11e09652d9c8564ac293a405e7e863274273e408
parente8a58a27cdee36e3ccb5839c595b310f25ecdd55 (diff)
downloadweechat-6b23d855d83c2cbfd0148494d525ea17b8f58fbe.zip
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.
-rw-r--r--src/plugins/buflist/buflist.c2
1 files changed, 1 insertions, 1 deletions
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);
}