1
0
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:
Pang Yan Han 2011-08-22 13:00:33 +08:00 committed by Dan McGee
parent d9e5dab6ac
commit e9b8a7693d

View File

@ -103,7 +103,7 @@ static struct list_t *list_new(size_t initial_size)
return NULL; return NULL;
} }
list->list = calloc(initial_size, sizeof(char **)); list->list = calloc(initial_size, sizeof(char *));
if(!list->list) { if(!list->list) {
free(list); free(list);
return NULL; return NULL;