mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-11 11:55:12 -05:00
libalpm: change graph malloc to MALLOC macro
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
f75ee71762
commit
c8243bb8ed
@ -43,7 +43,8 @@ static pmgraph_t *_alpm_graph_new(void)
|
|||||||
{
|
{
|
||||||
pmgraph_t *graph = NULL;
|
pmgraph_t *graph = NULL;
|
||||||
|
|
||||||
graph = (pmgraph_t *)malloc(sizeof(pmgraph_t));
|
MALLOC(graph, sizeof(pmgraph_t), RET_ERR(PM_ERR_MEMORY, NULL));
|
||||||
|
|
||||||
if(graph) {
|
if(graph) {
|
||||||
graph->state = 0;
|
graph->state = 0;
|
||||||
graph->data = NULL;
|
graph->data = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user