Refactor searchUUIDByName: update parameter type for UUIDs found, improve memory allocation handling, and enhance error checking

This commit is contained in:
2025-05-17 18:30:55 +02:00
parent 05e8fefafc
commit c84987239e
4 changed files with 13 additions and 11 deletions
+1 -1
View File
@@ -404,7 +404,7 @@ void personSearch(list_t *person_list, int terminal_x, int terminal_y)
}
else if (highlight == 2)
{
uint16_t count = searchUUIDByName(person_list, name, surname, uuids_found);
uint16_t count = searchUUIDByName(person_list, name, surname, &uuids_found);
list_t found_pesons;
found_pesons.head = NULL;
node_t **last_ptr = &found_pesons.head;