summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/deps.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-11-15 05:51:47 +0100
committerDan McGee <dan@archlinux.org>2007-11-15 05:51:47 +0100
commitc8243bb8ed2908e92d311a32d15e797dc83ba633 (patch)
treeb1e356dad1e6b764d5414e1d85c6f73fec84a214 /lib/libalpm/deps.c
parentf75ee7176235f2c1a531113985d715ddcafb6d05 (diff)
downloadpacman-c8243bb8ed2908e92d311a32d15e797dc83ba633.tar.gz
pacman-c8243bb8ed2908e92d311a32d15e797dc83ba633.tar.xz
libalpm: change graph malloc to MALLOC macro
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/deps.c')
-rw-r--r--lib/libalpm/deps.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c
index 509c2a67..548b643e 100644
--- a/lib/libalpm/deps.c
+++ b/lib/libalpm/deps.c
@@ -43,7 +43,8 @@ static pmgraph_t *_alpm_graph_new(void)
{
pmgraph_t *graph = NULL;
- graph = (pmgraph_t *)malloc(sizeof(pmgraph_t));
+ MALLOC(graph, sizeof(pmgraph_t), RET_ERR(PM_ERR_MEMORY, NULL));
+
if(graph) {
graph->state = 0;
graph->data = NULL;