1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00

Backport from pacman 2.9.5

This commit is contained in:
Aurelien Foret 2005-03-26 09:00:49 +00:00
parent 3f165e1912
commit 10b0e0d9af
2 changed files with 4 additions and 1 deletions

View File

@ -89,6 +89,9 @@ PMList* pm_list_add(PMList *list, void *data)
ptr = list;
if(ptr == NULL) {
ptr = pm_list_new();
if(ptr == NULL) {
return(NULL);
}
}
lp = pm_list_last(ptr);

View File

@ -26,7 +26,7 @@ typedef struct __pmlist_t {
void *data;
struct __pmlist_t *prev;
struct __pmlist_t *next;
struct __pmlist_t *last;
struct __pmlist_t *last; /* Quick access to last item in list */
} pmlist_t;
typedef struct __pmlist_t PMList;