From e09dc5f63b25266c282b187bce88ea984a13106b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Tue, 6 Jun 2017 19:50:47 +0200 Subject: [PATCH] buflist: return 0 if buffers are equal in sort function This is better for symmetry of comparison callback (comparing buffer1 and buffer2 will give same as comparing buffer2 and bufer1). Thanks to Simmo Saan for reporting the problem. --- 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 42ff7c687..5e87e205c 100644 --- a/src/plugins/buflist/buflist.c +++ b/src/plugins/buflist/buflist.c @@ -320,7 +320,7 @@ buflist_compare_buffers (void *data, struct t_arraylist *arraylist, return rc; } - return 1; + return 0; } /*