mirror of
https://github.com/moparisthebest/pacman
synced 2025-02-28 17:31:52 -05:00
Backport from pacman 2.9.5
This commit is contained in:
parent
3f165e1912
commit
10b0e0d9af
@ -89,6 +89,9 @@ PMList* pm_list_add(PMList *list, void *data)
|
|||||||
ptr = list;
|
ptr = list;
|
||||||
if(ptr == NULL) {
|
if(ptr == NULL) {
|
||||||
ptr = pm_list_new();
|
ptr = pm_list_new();
|
||||||
|
if(ptr == NULL) {
|
||||||
|
return(NULL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
lp = pm_list_last(ptr);
|
lp = pm_list_last(ptr);
|
||||||
|
@ -26,7 +26,7 @@ typedef struct __pmlist_t {
|
|||||||
void *data;
|
void *data;
|
||||||
struct __pmlist_t *prev;
|
struct __pmlist_t *prev;
|
||||||
struct __pmlist_t *next;
|
struct __pmlist_t *next;
|
||||||
struct __pmlist_t *last;
|
struct __pmlist_t *last; /* Quick access to last item in list */
|
||||||
} pmlist_t;
|
} pmlist_t;
|
||||||
|
|
||||||
typedef struct __pmlist_t PMList;
|
typedef struct __pmlist_t PMList;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user