mirror of
https://github.com/swaywm/sway.git
synced 2026-04-29 06:46:22 -04:00
fixes
This commit is contained in:
parent
a2896f33a4
commit
f4c90635ff
9 changed files with 20 additions and 19 deletions
|
|
@ -211,7 +211,7 @@ ssize_t list_lsearch(const list_t *list, int compare(const void *key, const void
|
|||
uint8_t (*array)[size] = list->items;
|
||||
|
||||
for (size_t i = 0; i < list->length; ++i) {
|
||||
if (compare(key, &array[i]) == 0) {
|
||||
if (compare(&key, &array[i]) == 0) {
|
||||
if (ret) {
|
||||
memcpy(ret, &array[i], size);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue