Refactor searchUUIDByName: update parameter type for UUIDs found, improve memory allocation handling, and enhance error checking
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user