mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-23 08:18:51 -05:00
pacsort: correct pointer type in list_new
Pointer sizes are the same but this makes intention clearer. Signed-off-by: Pang Yan Han <pangyanhan@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
d9e5dab6ac
commit
e9b8a7693d
@ -103,7 +103,7 @@ static struct list_t *list_new(size_t initial_size)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
list->list = calloc(initial_size, sizeof(char **));
|
||||
list->list = calloc(initial_size, sizeof(char *));
|
||||
if(!list->list) {
|
||||
free(list);
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user