index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | lib/libalpm/trans.c | 2 |
diff --git a/lib/libalpm/trans.c b/lib/libalpm/trans.c index b71d2fae..b515894b 100644 --- a/lib/libalpm/trans.c +++ b/lib/libalpm/trans.c @@ -27,6 +27,7 @@ #include "error.h" #include "package.h" #include "util.h" +#include "log.h" #include "list.h" #include "handle.h" #include "add.h" @@ -41,6 +42,7 @@ pmtrans_t *_alpm_trans_new() pmtrans_t *trans; if((trans = (pmtrans_t *)malloc(sizeof(pmtrans_t))) == NULL) { + _alpm_log(PM_LOG_ERROR, "malloc failure: could not allocate %d bytes", sizeof(pmtrans_t)); return(NULL); } |